Exemplo n.º 1
0
 public function getApp()
 {
     return $this->hasOne(Applications::className(), ['id' => 'app_id']);
 }
Exemplo n.º 2
0
 public function getApp()
 {
     return $this->hasOne(Applications::className(), ['id' => 'app_id'])->with('elements')->inverseOf('items');
 }