thrownewDoctrine_Record_Exception("Unknown property / related component '$name'.");
}
// one-to-many or one-to-one relation
if($fkinstanceofDoctrine_ForeignKey||
$fkinstanceofDoctrine_LocalKey){
switch($fk->getType()):
if($relinstanceofDoctrine_ForeignKey||
$relinstanceofDoctrine_LocalKey){
switch($rel->getType()):
caseDoctrine_Relation::MANY_COMPOSITE:
caseDoctrine_Relation::MANY_AGGREGATE:
// one-to-many relation found
if(!($valueinstanceofDoctrine_Collection))
thrownewDoctrine_Record_Exception("Couldn't call Doctrine::set(), second argument should be an instance of Doctrine_Collection when setting one-to-many references.");
thrownewDoctrine_Record_Exception("Couldn't call Doctrine::set(), second argument should be an instance of Doctrine_Record when setting one-to-one references.");
thrownewDoctrine_Record_Exception("Couldn't call Doctrine::set(), second argument should be an instance of Doctrine_Collection when setting one-to-many references.");