zendframework / zf2-documentation

Zend Framework 2 documentation sources
BSD 3-Clause "New" or "Revised" License
190 stars 571 forks source link

Add complex nest for Zend DB table gateway #1527

Closed ghost closed 8 years ago

ghost commented 8 years ago

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 commented 8 years ago

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

Thanks!