/**
  * @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();
 }
Exemplo n.º 3
0
 public function getPrices()
 {
     return $this->embeddedMany(oPrice::className(), 'prices');
 }