Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
zend-db-sql join example
<?php
// other setup code...
$select
->where([
'id = ?' => $userId
])
->join(
['r' => 'tblroles'],
'r.userid = tbluser.id',
[
'role'
],
Select::JOIN_INNER
);
print $select->getSqlString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.