コード例 #1
0
ファイル: CsServices.php プロジェクト: bokko79/servicemapp
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getServiceObjectProperties()
 {
     return $this->hasMany(CsServiceObjectProperties::className(), ['service_id' => 'id']);
 }
コード例 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getServiceObjectProperty()
 {
     return $this->hasOne(CsServiceObjectProperties::className(), ['id' => 'service_object_property_id']);
 }