Symfony 1.4 and Propel are involved but I'm not sure they cause strange behaviour described below.
$this->_parent = TestPeer::retrieveByPK($this->getParentId());
var_dump(get_class($this->_parent), $this->_parent);
prints out 'Test' and 'null'.
How can it be this way?
PS
1/ $this->getParentId() returns integer and there is no corresponding record in DB, so $this->_parent should be null.
2/ php 5.5.6, xdebug, opcache