Hi,
Does anyone know how to override Doctrine_Record getters and setters for Relation fields. For example if I have a class Note, Note has many Users, now can I override, for example, this operation Note->Users[] = $user1 ?
Thanks!
Hi,
Does anyone know how to override Doctrine_Record getters and setters for Relation fields. For example if I have a class Note, Note has many Users, now can I override, for example, this operation Note->Users[] = $user1 ?
Thanks!
Never tried it myself but you should be able to do this with _get
and _set
. There is also a post here on SO that asks almost the same thing: