Skip to content

Instantly share code, notes, and snippets.

@cgsmith
Created March 26, 2015 20:37
Show Gist options
  • Save cgsmith/23c161b2eaf81067270e to your computer and use it in GitHub Desktop.
Save cgsmith/23c161b2eaf81067270e to your computer and use it in GitHub Desktop.
<?php
/**
* After making necessary ZF 1.12.8 changes
*/
$nameColumn = new Zend_Db_Expr("trim(concat_ws(' ', user.nameprefix, user.firstname, user.lastname)) as name");
$select = $this->getDbTable()->select();
$select->from(
$this->_getDbTable()->info(Zend_Db_Table_Abstract::NAME),
array(
$nameColumn,
"user.email",
// more data similar to 'user.email'
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment