Doctrine Override Getters and Setters Domains for Relationships

Does anyone know how to override the Doctrine_Record recipients and setters for relationship fields. For example, if I have a Note class , a Note has many Users , now I can override, for example, this operation Note-> Users [] = $ user1 ?

Thank!

+3
source share
1 answer

I never tried it myself, but you can do it with _getand _set. There is also a SO post here that requests almost the exact same thing:

Doctrine_Record (sfDoctrineRecord) Doctrine PHP Symfony

+2

Source: https://habr.com/ru/post/1757177/


All Articles