예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUserObjects()
 {
     return $this->hasMany(UserObjects::className(), ['loc_id' => 'id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUserObject()
 {
     return $this->hasOne(UserObjects::className(), ['id' => 'user_object_id']);
 }