Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Labels:None
Description
At the moment I found only one way how to work with default values
/** * @var string $isActive * * @Column(name="isActive", type="boolean", nullable=false) */ private $isActive;
and then in the construct I use something like $this->setIsActive(true);
on db level it looks like "isActive BIT default 1"
But the problem happened when I try to compare schemas for migrations. It always false positives on defaults.
How to set defaults for prevent false positives in Comparator?
private $isActive = 1?