-
Notifications
You must be signed in to change notification settings - Fork 1
Where
Gilberto Junior edited this page Nov 29, 2019
·
5 revisions
If you want to write the SQL clausule. Free to make conditions.
public function where(string $sql): self;
PHP's way:
$repository->where("user_id IS NULL OR name LIKE 'Mary%'");
SQL's Representation:
WHERE user IS NULL OR name LIKE 'Mary%';
by c0dehappy