partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit ab1afde97cf4e4a73333f88ba72c290796c403a5
parent d746d281ff024f5d0c057cee16491edd5053deef
Author: Felicitus <felicitus@felicitus.org>
Date:   Mon, 20 Feb 2012 09:55:10 +0100

Added several default values for a part

Diffstat:
Msrc/backend/de/RaumZeitLabor/PartKeepr/Part/Part.php | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backend/de/RaumZeitLabor/PartKeepr/Part/Part.php b/src/backend/de/RaumZeitLabor/PartKeepr/Part/Part.php @@ -89,7 +89,7 @@ class Part extends BaseEntity implements Serializable, Deserializable { * The comment for this part * @Column(type="text") */ - private $comment; + private $comment = ""; /** * The stock level. Note that this is a cached value, because it makes our summary queries easier. @@ -106,7 +106,7 @@ class Part extends BaseEntity implements Serializable, Deserializable { * @Column(type="integer") * @var integer */ - private $minStockLevel; + private $minStockLevel = 0; /** * The average price for the part. Note that this is a cached value.