commit e7cf065bc667f83772cf2097b8283ca472acb48d parent 49977e7b4d3e4d0445d4e5d632afaa566f5dc140 Author: Felicia Hummel <felicia@partkeepr.com> Date: Tue, 24 Jan 2017 13:50:59 +0100 Initialize overageType and overage with defaults, fixes #795 Diffstat:
M | src/PartKeepr/ProjectBundle/Entity/ProjectPart.php | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/PartKeepr/ProjectBundle/Entity/ProjectPart.php b/src/PartKeepr/ProjectBundle/Entity/ProjectPart.php @@ -87,6 +87,11 @@ class ProjectPart extends BaseEntity */ private $overage; + public function __construct () { + $this->setOverageType(self::OVERAGE_TYPE_ABSOLUTE); + $this->setOverage(0); + } + /** * @return string */