示例#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');
 }