Issues

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

In my opinion this is expected behaviour. You should check if the refColumn's value is not NULL before calling findDependentRowset().