You need to use Zend_Db_Table
's setIntegrityCheck()
functionality:
Something like this should work:
$articleTable = new Article();
$select = $articleTable->select();
$select->setIntegrityCheck(false);
$select->from('article', 'article.*');
$select->joinLeft('user', 'article.author_id = user.id', array('author_name'=>'author'));
$select->where('article.id = 123');
$articleRecord = $articleTable->fetchRow($select);
You can check the SQL generated using:
Zend_Debug::dump($select->__toString());
Note that the returned Zend_Db_Table_Row
object is read only.