255], [['coords', 'address', 'email'], 'string', 'max' => 200], [['phones'], 'string', 'max' => 100], [['skype'], 'string', 'max' => 50] ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'name' => 'Название', 'info' => 'Описание', 'city_id' => 'Город', 'is_default' => 'Is Default', 'content_delete' => 'Content Delete', 'coords' => 'Координаты карты Google', 'phones' => 'Телефоны', 'address' => 'Адрес', 'email' => 'Email', 'skype' => 'Skype', ]; } public function getDicCities() { return $this->hasOne(DicCities::className(), ['id' => 'city_id']); } }