#1434: Record::fromArray(array, deep), refresh relation if related record
(array[key]) is transient
--------------------------+-------------------------------------------------
Reporter: thomas.s | Owner: romanb
Type: enhancement | Status: new
Priority: minor | Milestone: 1.1.0
Component: Relations | Version: 1.0.0
Resolution: | Keywords: refresh relation fromarray
sfformdoctrine form symfony
Has_test: 0 | Mystatus: Pending Core Response
Has_patch: 1 |
--------------------------+-------------------------------------------------
Comment (by thomas.s):
sfFormDoctrine::_construct() does not check for null anymore (that's a
good thing). My suggested change in Record.php has to be adjusted to:
{{{
if (!$this->$key) {
$this->refreshRelated($key);
}
}}}
--
Ticket URL: <http://trac.phpdoctrine.org/ticket/1434#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
-~----------~----~----~----~------~----~------~--~---