In the case that you have a NULL foreign key and don't use a LEFT JOIN (the related object is not already hydrated), the following generated test throw a PHP error:
// test in a related object accessor in a Propel BaseXXX.php
if (!$this->aObject->isNew() && is_null($this->aObject->getPrimaryKey())) {
return NULL;
}
The problem is that in this case the $this->aObject attribute is null.
I attached a quick'n'dirty patch to transform the test in:
// test in a related object accessor in a Propel BaseXXX.php
if (!is_null($this->aObject) && !$this->aObject->isNew() && is_null($this->aObject->getPrimaryKey())) {
return NULL;
}
But I think it would be better to handle the "NULLs-hydrated object" problem in doSelectJoinXXX methods, no ?