Issues

ZF-10965: Error in findDependentRowset() when refColumns's value is NULL

Issue Type: Bug Created: 2011-01-19T09:16:57.000+0000 Last Updated: 2012-05-29T02:20:24.000+0000 Status: Closed Fix version(s): Reporter: Antoine MOREL (raymond876) Assignee: Richard Tuin (richardtuin) Tags: - Zend_Db_Table

Related issues: Attachments:

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().

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts