Anton

Results 257 comments of Anton

@rob006 > your PR affects all modals - are you sure modals contain only code?) nope, all modals - `.modal`, i change styles only for `#preview-modal` > To represent multiple...

that's magic in yii confuse me - why not define properties with defaults from db table? ~~~php class Contact extends ActiveRecord { /** * @var int */ public $id; /**...

@uldisn why? timestamp is integer

@bizley yes, @uldisn add quick fix for me, but I can't replace tinyint to enum in db without BC. Field type determinate validation rules and html fields in CRUD views....

@bizley enum's too work strange: in form - select, in model - string without rules as `in_array()`

@bizley cast where? in yii code or in db?

@bizley https://dev.mysql.com/doc/refman/5.7/en/numeric-type-syntax.html it's stored as tinyint but in sql you can set as true/false

@bizley after my fix: ~~~php /** * @property bool|null $is_bool */ class TblTest1 extends \yii\db\ActiveRecord { /** * {@inheritDoc} */ public function rules(): array { return [ ... [['is_bool'], 'boolean'],...

@bizley i talk about boolean, not enum. gii use fix for postgresql without any problem

@samdark To cover more cases, value may be any value converting to boolean/int(to BC) before validation. Boolean values are stored as integers 0 (false) and 1 (true). I check it's...