/** * @return \yii\db\ActiveQuery */ public function getObjectProperty() { return $this->hasOne(CsObjectProperties::className(), ['id' => 'object_property_id']); }
/** * @return \yii\db\ActiveQuery */ public function getObjectProperties() { return $this->hasMany(CsObjectProperties::className(), ['object_id' => 'id']); }