1
0
mirror of synced 2024-12-14 23:26:04 +03:00

fixed ATTR_COLL_KEY handling

This commit is contained in:
zYne 2007-01-21 22:26:38 +00:00
parent ffa7ff54a8
commit 8a1766e964

View File

@ -113,7 +113,7 @@ abstract class Doctrine_Configurable
if ( ! ($this instanceof Doctrine_Table)) { if ( ! ($this instanceof Doctrine_Table)) {
throw new Doctrine_Exception("This attribute can only be set at table level."); throw new Doctrine_Exception("This attribute can only be set at table level.");
} }
if ( ! $this->hasColumn($value)) { if ($value !== null && ! $this->hasColumn($value)) {
throw new Doctrine_Exception("Couldn't set collection key attribute. No such column '$value'"); throw new Doctrine_Exception("Couldn't set collection key attribute. No such column '$value'");
} }
break; break;