#1500: Alias and left join
------------------------+---------------------------------------------------
Reporter: griotteau | Owner: romanb
Type: defect | Status: new
Priority: major | Milestone: 1.0.4
Component: Relations | Version: 1.0.2
Resolution: | Keywords: alias relation
Has_test: 0 | Mystatus: Pending Core Response
Has_patch: 0 |
------------------------+---------------------------------------------------
Comment (by jwage):
Roman, I think that might be incorrect. You can't use the column name
because then when Doctrine tries to automatically assign the foreign key
to an object, it will set it with `$obj->foreign_key_id` and if it is
aliased as `foreignKeyId` it will fail because it will try and access
foreign_key_id accessor and Doctrine complains it doesn't exist.
We can either fix the accessors to work with column name as well as the
alias, or fix all the instances where SQL is built to make sure the column
name is used and not the field name.
--
Ticket URL: <http://trac.phpdoctrine.org/ticket/1500#comment:3>
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
-~----------~----~----~----~------~----~------~--~---