Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Add complex nest for Zend DB table gateway #1527

Closed
ghost opened this issue Dec 14, 2015 · 1 comment
Closed

Add complex nest for Zend DB table gateway #1527

ghost opened this issue Dec 14, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 14, 2015

Add complex nest for Zend DB table gateway

use Zend\Db\Sql\Where;

$where = new Where();
$nest = $where->nest();
$nest->equalTo('username', 'david')->or->equalTo('city', 'newyork');
$nest->unnest()
$result = $this->getTable($tableName)->select($where)->toArray();
@froschdesign
Copy link
Member

Please move your request to the issue tracker of the DB component.

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant