Re: [fw-general] Re: TableGateway and multiple where conditions in a select

2013-09-16 Thread Pierre Rambaud
Hi, Otherwise you can do this for example: $select = $this-select( function (Select $select) use ($userEmail, $userId) { $select-where-equalTo('email', $userEmail); if ($userId !== null) { $select-where-notEqualTo('id', $userId); } } ); 2013/9/15

[fw-general] Re: TableGateway and multiple where conditions in a select

2013-09-15 Thread András Csányi
I got this as an answer, I hope it may help for others. Hello Andras, Just saw you message Didn't want to clutter the list with the reply... Simply there is addPredicate internal mechanism used in those classes You've got to pass a filter to select closure then apply it in the closure