Author: guilhermeblanco
Date: 2008-09-10 02:48:46 +0100 (Wed, 10 Sep 2008)
New Revision: 4906
Modified:
branches/1.0/lib/Doctrine/Connection/UnitOfWork.php
Log:
Fixed issue reported by user Adam @ doctrine-user when working with related
components aliased.
Modified: branches/1.0/lib/Doctrine/Connection/UnitOfWork.php
===================================================================
--- branches/1.0/lib/Doctrine/Connection/UnitOfWork.php 2008-09-09 19:35:30 UTC
(rev 4905)
+++ branches/1.0/lib/Doctrine/Connection/UnitOfWork.php 2008-09-10 01:48:46 UTC
(rev 4906)
@@ -394,7 +394,7 @@
if ( ! empty($id)) {
foreach ((array) $rel->getLocal() as $k => $field) {
- if (isset($id[$k]) && $id[$k]) {
+ if (isset($id[$k]) && $id[$k] &&
$record->getTable()->hasField($k)) {
$record->set($field, $id[$k]);
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---