@@ -26,7 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * prefixSessionData. |
28 | 28 | * |
29 | - * @return callable |
|
29 | + * @return \Closure |
|
30 | 30 | */ |
31 | 31 | public static function prefixSessionData() |
32 | 32 | { |
@@ -463,7 +463,7 @@ |
||
463 | 463 | |
464 | 464 | /** |
465 | 465 | * @param BaseObject $object |
466 | - * @return static |
|
466 | + * @return AccessorByString |
|
467 | 467 | */ |
468 | 468 | public function addToCache(BaseObject $object) |
469 | 469 | { |
@@ -8,7 +8,6 @@ discard block |
||
8 | 8 | |
9 | 9 | namespace flipbox\ember\services\traits; |
10 | 10 | |
11 | -use yii\db\ActiveRecord as Record; |
|
12 | 11 | use craft\db\Query; |
13 | 12 | use craft\helpers\ArrayHelper; |
14 | 13 | use craft\helpers\Json as JsonHelper; |
@@ -16,6 +15,7 @@ discard block |
||
16 | 15 | use flipbox\ember\helpers\ObjectHelper; |
17 | 16 | use yii\base\InvalidConfigException; |
18 | 17 | use yii\base\Object as BaseObject; |
18 | +use yii\db\ActiveRecord as Record; |
|
19 | 19 | use yii\db\QueryInterface; |
20 | 20 | |
21 | 21 | /** |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | /** |
228 | 228 | * @param int $id |
229 | 229 | * @param string|null $toScenario |
230 | - * @return Record|null |
|
230 | + * @return \craft\db\ActiveRecord|null |
|
231 | 231 | */ |
232 | 232 | public function findRecordById(int $id, string $toScenario = null) |
233 | 233 | { |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | * @param int $id |
244 | 244 | * @param string|null $toScenario |
245 | 245 | * @throws RecordNotFoundException |
246 | - * @return Record |
|
246 | + * @return null|\craft\db\ActiveRecord |
|
247 | 247 | */ |
248 | 248 | public function getRecordById(int $id, string $toScenario = null) |
249 | 249 | { |
@@ -8,11 +8,11 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\ember\services\traits; |
10 | 10 | |
11 | -use yii\db\ActiveRecord as Record; |
|
12 | 11 | use flipbox\ember\exceptions\ObjectNotFoundException; |
13 | 12 | use flipbox\ember\exceptions\RecordNotFoundException; |
14 | 13 | use flipbox\ember\interfaces\IdAttribute; |
15 | 14 | use yii\base\Object as BaseObject; |
15 | +use yii\db\ActiveRecord as Record; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * @author Flipbox Factory <[email protected]> |
@@ -8,8 +8,8 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\ember\services\traits; |
10 | 10 | |
11 | -use yii\db\ActiveRecord as Record; |
|
12 | 11 | use yii\base\Object as BaseObject; |
12 | +use yii\db\ActiveRecord as Record; |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * @author Flipbox Factory <[email protected]> |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | /** |
285 | 285 | * @param string $string |
286 | 286 | * @param string|null $toScenario |
287 | - * @return Record|null |
|
287 | + * @return \craft\db\ActiveRecord|null |
|
288 | 288 | */ |
289 | 289 | public function findRecordByString(string $string, string $toScenario = null) |
290 | 290 | { |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | * @param string $string |
301 | 301 | * @param string|null $toScenario |
302 | 302 | * @throws RecordNotFoundException |
303 | - * @return Record|null |
|
303 | + * @return null|\craft\db\ActiveRecord |
|
304 | 304 | */ |
305 | 305 | public function getRecordByString(string $string, string $toScenario = null) |
306 | 306 | { |
@@ -10,8 +10,8 @@ |
||
10 | 10 | |
11 | 11 | use Craft; |
12 | 12 | use flipbox\ember\models\Model; |
13 | -use yii\db\ActiveRecord as Record; |
|
14 | 13 | use yii\base\ModelEvent; |
14 | +use yii\db\ActiveRecord as Record; |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * @author Flipbox Factory <[email protected]> |