Zend: Join doesn’t work in my model

November 10, 2011 | In: php, web development, Zend Framework

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.

You may also like these related posts

Categories

By Google