Zend: Join doesn’t work in my model

Zend provides JOIN, joinLeft, joinRight keywords to join two or multiple tables.  you can make an sql object by calling select function of current model by:

$select = $this->getDbTable()->select();

Use below line to use JOIN terms in your SQL:

$select->setIntegrityCheck(false);

By default its integrity value set to True and it do not allow to use join with multiple tables. We set to False and then we can use JOIN.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*