Class QueryFactory
Factory class for generating instances of Select, Insert, Update, Delete queries.
Namespace: Cake\ORM\Query
Method Summary
-
delete() public
Create a new DeleteQuery instance.
-
insert() public
Create a new InsertQuery instance.
-
select() public
Create a new Query instance.
-
update() public
Create a new UpdateQuery instance.
Method Detail
delete() ¶ public
delete(Cake\ORM\Table $table): Cake\ORM\Query\DeleteQuery
Create a new DeleteQuery instance.
Parameters
-
Cake\ORM\Table
$table The table this query is starting on.
Returns
Cake\ORM\Query\DeleteQuery
insert() ¶ public
insert(Cake\ORM\Table $table): Cake\ORM\Query\InsertQuery
Create a new InsertQuery instance.
Parameters
-
Cake\ORM\Table
$table The table this query is starting on.
Returns
Cake\ORM\Query\InsertQuery
select() ¶ public
select(Cake\ORM\Table $table): Cake\ORM\Query\SelectQuery
Create a new Query instance.
Parameters
-
Cake\ORM\Table
$table The table this query is starting on.
Returns
Cake\ORM\Query\SelectQuery
update() ¶ public
update(Cake\ORM\Table $table): Cake\ORM\Query\UpdateQuery
Create a new UpdateQuery instance.
Parameters
-
Cake\ORM\Table
$table The table this query is starting on.
Returns
Cake\ORM\Query\UpdateQuery