Пример #1
0
 public function getApp()
 {
     return $this->hasOne(Applications::className(), ['id' => 'app_id']);
 }
Пример #2
0
 public function getApp()
 {
     return $this->hasOne(Applications::className(), ['id' => 'app_id'])->with('elements')->inverseOf('items');
 }