| @@ 198-206 (lines=9) @@ | ||
| 195 | return static::$select_array_cache; |
|
| 196 | } |
|
| 197 | ||
| 198 | public function getLastExport() |
|
| 199 | { |
|
| 200 | return $this->hasOne(Export::className(), ['object_id' => 'id']) |
|
| 201 | ->andOnCondition( |
|
| 202 | [ |
|
| 203 | Export::tableName() . '.user_id' => Yii::$app->user->id, |
|
| 204 | ] |
|
| 205 | ); |
|
| 206 | } |
|
| 207 | ||
| 208 | public function getLastImport() |
|
| 209 | { |
|
| @@ 208-216 (lines=9) @@ | ||
| 205 | ); |
|
| 206 | } |
|
| 207 | ||
| 208 | public function getLastImport() |
|
| 209 | { |
|
| 210 | return $this->hasOne(Import::className(), ['object_id' => 'id']) |
|
| 211 | ->andOnCondition( |
|
| 212 | [ |
|
| 213 | Import::tableName() . '.user_id' => Yii::$app->user->id, |
|
| 214 | ] |
|
| 215 | ); |
|
| 216 | } |
|
| 217 | ||
| 218 | /** |
|
| 219 | * @return string |
|