commit f8ef0374e5f73f60e8f828e057e72ed9839a0123 parent 89d4a35d23a8b4bd44df22129e9a0835bdec1aa1 Author: Felicia Hummel <felicia@partkeepr.com> Date: Tue, 24 Jan 2017 13:45:49 +0100 Initialize witjh sane defaults, related to #797 Diffstat:
M | src/PartKeepr/PartBundle/Entity/MetaPartParameterCriteria.php | | | 1 | + |
M | src/PartKeepr/PartBundle/Entity/PartParameter.php | | | 2 | ++ |
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/PartKeepr/PartBundle/Entity/MetaPartParameterCriteria.php b/src/PartKeepr/PartBundle/Entity/MetaPartParameterCriteria.php @@ -90,6 +90,7 @@ class MetaPartParameterCriteria extends BaseEntity public function __construct() { $this->setValueType(PartParameter::VALUE_TYPE_STRING); + $this->setStringValue(""); } /** diff --git a/src/PartKeepr/PartBundle/Entity/PartParameter.php b/src/PartKeepr/PartBundle/Entity/PartParameter.php @@ -170,6 +170,8 @@ class PartParameter extends BaseEntity public function __construct() { $this->setValueType(self::VALUE_TYPE_STRING); + $this->setDescription(""); + $this->setStringValue(""); } /**