Hazaar\DBI\Table::where() and Hazaar\DBI\Table::find() update to allow string where clauses #20

Closed
opened 2017-12-06 04:29:25 +00:00 by jamie · 4 comments
jamie commented 2017-12-06 04:29:25 +00:00 (Migrated from git.hazaar.io)

Currently, the where() method requires that the argument be an array of standard search criteria. I think it would be nice to be able to use a standard SQL where clause instead.

Such as:

$db = new \Hazaar\DBI\Adapter();

$result = $db->users->where('group_id = 1234');
Currently, the `where()` method requires that the argument be an array of standard search criteria. I think it would be nice to be able to use a standard SQL where clause instead. Such as: ```php $db = new \Hazaar\DBI\Adapter(); $result = $db->users->where('group_id = 1234'); ```
jamie commented 2017-12-06 04:56:59 +00:00 (Migrated from git.hazaar.io)
created branch [`20-hazaar-dbi-table-where-and-hazaar-dbi-table-find-update-to-allow-string-where-clauses`](https://git.hazaarlabs.com/hazaar/hazaar-dbi/compare/master...20-hazaar-dbi-table-where-and-hazaar-dbi-table-find-update-to-allow-string-where-clauses)
jamie commented 2017-12-06 04:57:03 +00:00 (Migrated from git.hazaar.io)

mentioned in merge request !1

mentioned in merge request !1
jamie commented 2017-12-06 04:57:36 +00:00 (Migrated from git.hazaar.io)

closed via merge request !1

closed via merge request !1
jamie commented 2017-12-06 04:57:37 +00:00 (Migrated from git.hazaar.io)

closed via commit baecd1d27d

closed via commit baecd1d27d5b03caa7dfe0d5e88e62b33b471f22
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hazaar/hazaar-dbi#20
No description provided.