示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getActionsTypes()
 {
     return $this->hasMany(ActionsTypes::className(), ['company_id' => 'id']);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getActionType()
 {
     return $this->hasOne(ActionsTypes::className(), ['id' => 'action_type_id']);
 }