1 | <?php |
||
26 | trait WithCriteriaTrait |
||
27 | { |
||
28 | |||
29 | /** |
||
30 | * Criteria |
||
31 | * @var CriteriaInterface|Criteria |
||
32 | */ |
||
33 | private $_criteria = null; |
||
34 | |||
35 | /** |
||
36 | * Returns the Criteria associated with this model. |
||
37 | * @param boolean $createIfNull whether to create a criteria instance if it does not exist. Defaults to true. |
||
38 | * @return CriteriaInterface|Criteria the query criteria that is associated with this model. |
||
39 | * @since v1.0 |
||
40 | * @Ignored |
||
41 | */ |
||
42 | 29 | public function getDbCriteria($createIfNull = true) |
|
53 | |||
54 | /** |
||
55 | * Set new criteria, previous criteria will be destroyed. |
||
56 | * |
||
57 | * @param CriteriaInterface|Criteria|array $criteria |
||
58 | * @return static |
||
59 | * @since v1.0 |
||
60 | * @Ignored |
||
61 | */ |
||
62 | public function setDbCriteria($criteria) |
||
78 | |||
79 | } |
||
80 |