| |
doctrine-dev |
Doctrine supports a cool feature called "auto accessor override".
AFAIR this feature wasn't planned before 1.0, that's why there is a
"small" problem now in 1.0 and 1.1, which is possible to be
(partially?) fixed in new 1.2 branch (I hope so).
I'm talking about get* and set* functions in Doctrine_Record and
Doctrine_Record_Abstract. They reserve some names, which cannot be
used as model's fieldnames, because everything goes crazy - they
conflict with magic and custom get* and set* function of auto
accessors. I heard many complains >>why does doctrine crash when I add
"data" field in my model<< (for example for session storage). And
there is no info anywhere, that it is impossible to have "data",
"last" or "last_modified" fields in doctrine with auto accessors or in
symfony.
I'm aware that renaming all get* and set* is a big backward
compatibility breaker, so I won't dare to propose that. :P Is there
any other way to resolve that conflict?