|
@@ -48,6 +48,30 @@ After this, you'll need to tweak the entities a bit:
|
|
|
|
|
|
.. code-block:: php
|
|
|
|
|
|
+Set the default value to ``false``.
|
|
|
+
|
|
|
+.. code-block:: php
|
|
|
+
|
|
|
+ // src/AppBundle/Entity/BlogPost.php
|
|
|
+
|
|
|
+ // ...
|
|
|
+ class BlogPost
|
|
|
+ {
|
|
|
+ // ...
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @var bool
|
|
|
+ *
|
|
|
+ * @ORM\Column(name="draft", type="boolean")
|
|
|
+ */
|
|
|
+ private $draft = false;
|
|
|
+
|
|
|
+ // ...
|
|
|
+ }
|
|
|
+
|
|
|
+.. code-block:: php
|
|
|
+
|
|
|
+
|
|
|
// src/AppBundle/Entity/Category.php
|
|
|
|
|
|
// ...
|