/** * @param \app\models\Property $property * @return bool */ public function changePropertyType(\app\models\Property &$property) { if (1 !== intval($property->is_eav)) { $property->is_eav = 1; $property->is_column_type_stored = 0; $property->has_static_values = 0; return true; } return parent::changePropertyType($property); }