public function init()
 {
     $this->name = \Yii::t('skeeks/form2/app', 'Control of property values');
     $this->modelShowAttribute = "name";
     $this->modelClassName = Form2FormProperty::className();
     parent::init();
 }
예제 #2
0
 /**
  *
  * Все возможные свойства связанные с моделью
  *
  * @return array|\yii\db\ActiveRecord[]
  */
 public function getRelatedProperties()
 {
     //return $this->form->form2FormProperties;
     return $this->hasMany(Form2FormProperty::className(), ['form_id' => 'id'])->via('form')->orderBy(['priority' => SORT_ASC]);
 }
예제 #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getForm2FormProperties()
 {
     return $this->hasMany(Form2FormProperty::className(), ['form_id' => 'id'])->orderBy(['priority' => SORT_ASC]);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProperty()
 {
     return $this->hasOne(Form2FormProperty::className(), ['id' => 'property_id']);
 }