Commit 8a1766e9 authored by zYne's avatar zYne

fixed ATTR_COLL_KEY handling

parent ffa7ff54
...@@ -113,7 +113,7 @@ abstract class Doctrine_Configurable ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment