#1452: Relations should be automatically loaded when using findById()
-------------------------+--------------------------------------------------
Reporter: lsolesen | Owner: jwage
Type: defect | Status: closed
Priority: minor | Milestone: 1.0.3
Component: Attributes | Version: 1.0
Resolution: invalid | Keywords:
Has_test: 1 | Mystatus: Pending Core Response
Has_patch: 0 |
-------------------------+--------------------------------------------------
Changes (by jwage):
* status: new => closed
* resolution: => invalid
Comment:
You need to use findOneById() or find()
Currently if you do findBy{PrimaryKey} Doctrine isn't smart enough to know
to only return 1 record instead of a collection. I think this is a
change/enhancement we should make. Can you create another ticket for this?
I added your test in r4955
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1452#comment:2>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---