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