ZF-10965: Error in findDependentRowset() when refColumns's value is NULL
Description
Error in findDependentRowset() when refColumns's value is NULL.
exemple : For in class Application_Model_DbTable_ProfileProperty:
protected $_referenceMap = array(
'ProfileProperty' => array(
'columns' => 'profilename',
'refTableClass' => 'Application_Model_DbTable_Cpe',
'refColumns' => 'profileName'
)
);
Application_Model_DbTable_Cpe->findDependentRowset('Application_Model_DbTable_ProfileProperty');
make : SQLSTATE[HY093]: Invalid parameter number: no parameters were bound
the request generate is : SELECT ProfilePropertyBean.* FROM ProfilePropertyBean WHERE (profilename = ?)
Comments
Posted by Richard Tuin (richardtuin) on 2011-01-22T07:48:25.000+0000
In my opinion this is expected behaviour. You should check if the refColumn's value is not NULL before calling findDependentRowset().