1 | <?php |
||
20 | trait ActiveRecord |
||
21 | { |
||
22 | /** |
||
23 | * @return string |
||
24 | */ |
||
25 | public abstract static function recordClass(): string; |
||
26 | |||
27 | /** |
||
28 | * @return Connection |
||
29 | */ |
||
30 | protected static function getDb(): Connection |
||
37 | |||
38 | /******************************************* |
||
39 | * QUERY |
||
40 | *******************************************/ |
||
41 | |||
42 | /** |
||
43 | * @param array $config |
||
44 | * @return \yii\db\ActiveQuery |
||
45 | */ |
||
46 | public function getQuery($config = []): ActiveQuery |
||
60 | |||
61 | /** |
||
62 | * @param array $config |
||
63 | * @return array |
||
64 | */ |
||
65 | protected function prepareQueryConfig($config = []) |
||
69 | } |