/** * @inheritdoc */ public function getServices() { return $this->hasMany(oPrice::className(), 'services'); }
public function testLoadLinkRelation() { $priceFind = oPrice::find()->where(['@rid' => '#13:5'])->with(['delivery'])->one(); // print_r($priceFind); // die(); }
public function getPrices() { return $this->embeddedMany(oPrice::className(), 'prices'); }