sfDoctrineGuard - how to ALWAYS join sfGuardProfile to sfGuardUser
Posted
by prodigitalson
on Stack Overflow
See other posts from Stack Overflow
or by prodigitalson
Published on 2010-05-01T05:26:02Z
Indexed on
2010/05/01
5:27 UTC
Read the original article
Hit count: 248
I want to make it so that anytime the db is queried for an sfGuardUserProfile
it is autmoatically joined and hydrated with its related sfGuardUser
.
If i was using propel i would normally override the doSelectStmt
method of the sfGuardUserProfilePeer
class to inspect the Criteria
and modify it as necessary as well as modifying the hydrate
method of the sfGuardUserProfile
class. Im not sure how to go about doing this in Doctrine though.
© Stack Overflow or respective owner