public function init()
 {
     $this->name = "Управление свойствами";
     $this->modelShowAttribute = "name";
     $this->modelClassName = CmsContentProperty::className();
     parent::init();
 }
Exemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCmsContentProperties()
 {
     return $this->hasMany(CmsContentProperty::className(), ['id' => 'property_id'])->via('cmsContentElementProperties');
 }
Exemplo n.º 3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCmsContentProperties()
 {
     return $this->hasMany(CmsContentProperty::className(), ['content_id' => 'id'])->orderBy(['priority' => SORT_ASC]);
 }
Exemplo n.º 4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProperty()
 {
     return $this->hasOne(CmsContentProperty::className(), ['id' => 'property_id']);
 }