@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | * Finds the related records and populates them into the primary models. |
| 218 | 218 | * @param string $name the relation name |
| 219 | 219 | * @param array $primaryModels primary models |
| 220 | - * @return array the related models |
|
| 220 | + * @return ActiveRecordInterface[] the related models |
|
| 221 | 221 | * @throws InvalidConfigException if [[link]] is invalid |
| 222 | 222 | */ |
| 223 | 223 | public function populateRelation($name, &$primaryModels) |
@@ -383,7 +383,7 @@ discard block |
||
| 383 | 383 | } |
| 384 | 384 | |
| 385 | 385 | /** |
| 386 | - * @param array $models |
|
| 386 | + * @param ActiveRecordInterface[] $models |
|
| 387 | 387 | * @param array $link |
| 388 | 388 | * @param array $viaModels |
| 389 | 389 | * @param null|self $viaQuery |
@@ -424,7 +424,7 @@ discard block |
||
| 424 | 424 | * Executes the INSERT command, returning primary key values. |
| 425 | 425 | * @param string $table the table that new rows will be inserted into. |
| 426 | 426 | * @param array $columns the column data (name => value) to be inserted into the table. |
| 427 | - * @return array|false primary key values or false if the command fails |
|
| 427 | + * @return string primary key values or false if the command fails |
|
| 428 | 428 | * @since 2.0.4 |
| 429 | 429 | */ |
| 430 | 430 | public function insert($table, $columns) |
@@ -691,7 +691,7 @@ discard block |
||
| 691 | 691 | /** |
| 692 | 692 | * Returns the cache key for the specified table name. |
| 693 | 693 | * @param string $name the table name. |
| 694 | - * @return mixed the cache key. |
|
| 694 | + * @return string[] the cache key. |
|
| 695 | 695 | */ |
| 696 | 696 | protected function getCacheKey($name) |
| 697 | 697 | { |