fix detach fail, marks

This commit is contained in:
2023-10-06 00:37:46 +03:00
parent 5cdd516696
commit 21b0135c68
11 changed files with 643 additions and 2 deletions

View File

@ -9,6 +9,9 @@ use Yii;
*
* @property int $id
* @property string $title
* @property string $slug
* @property string $color
* @property int $status
*
* @property ProjectMark[] $projectMarks
*/
@ -28,7 +31,8 @@ class Mark extends \yii\db\ActiveRecord
public function rules()
{
return [
[['title'], 'string', 'max' => 255],
[['title', 'slug', 'color'], 'string', 'max' => 255],
[['status'], 'integer'],
];
}
@ -40,6 +44,9 @@ class Mark extends \yii\db\ActiveRecord
return [
'id' => 'ID',
'title' => 'Название',
'slug' => 'Ключ',
'color' => 'Цвет',
'status' => 'Статус',
];
}