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