#1449: Wrong record state after selection
-----------------------------------------------------+----------------------
Reporter: mm | Owner: romanb
Type: defect | Status: new
Priority: critical | Milestone:
Component: Record | Version: 1.0
Keywords: record, proxy, STATE_PROXY, STATE_DIRTY | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 0
-----------------------------------------------------+----------------------
Im just after update from 0.11.1 (with few patches) to 1.0.1 (Postgresql
DB).
Example of simple query with one join (1-n relation), no big deal.
$query = Doctrine_Query::create()
->select('d.id, d.number, a.id')
->from('Document d')
->innerJoin('d.Attachment a')
->orderBy('d.id DESC')
->execute();
$query[0]->date (returns correct date via lazy loading)
$query[0]->Attachment[0]->date (returns null, field in db isnt empty,
believe or not)
Reason, record $query[0] has state 4 (STATE_PROXY) so we able to retrieve
rest of data from db, but $query[0]->Attachment[0] has state 1
(STATE_DIRTY) as all related records (!?!?)
There is no patch till now.
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1449>
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
-~----------~----~----~----~------~----~------~--~---