From db31cf836eba2413b68c1daf982c468dc408b960 Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Tue, 11 Nov 2014 16:33:16 +0100 Subject: [PATCH] Title and choice for fixtures --- DataFixtures/ORM/LoadCustomField.php | 33 +++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/DataFixtures/ORM/LoadCustomField.php b/DataFixtures/ORM/LoadCustomField.php index 2ae38da93..4ed55542d 100644 --- a/DataFixtures/ORM/LoadCustomField.php +++ b/DataFixtures/ORM/LoadCustomField.php @@ -44,7 +44,38 @@ class LoadCustomField extends AbstractFixture implements OrderedFixtureInterface array('type' => 'text', 'options' => array('maxLength' => '255')), array('type' => 'text', 'options' => array('maxLength' => '1000')), array('type' => 'text', 'options' => array('maxLength' => '2000')), - ]; + array('type' => 'title', 'options' => array('type' => 'title')), + array('type' => 'title', 'options' => array('type' => 'subtitle')), + array('type' => 'choice', 'options' => array( + 'multiple' => false, + 'expanded'=> false, + 'other' => false, + 'choices'=> [ + array( + 'name' => array( + 'fr' => 'Options 1 FR', + 'nl' => 'Options 1 NL', + 'en' => 'Options 1 EN'), + 'active' => true, + 'slug' => 'el-1-fr'), + array( + 'name' => array( + 'fr' => 'Options 2 FR', + 'nl' => 'Options 2 NL', + 'en' => 'Options 2 EN'), + 'active' => true, + 'slug' => 'el-2-fr'), + array( + 'name' => array( + 'fr' => 'Options 2 FR', + 'nl' => 'Options 2 NL', + 'en' => 'Options 2 EN'), + 'active' => true, + 'slug' => 'el-3-fr') + ] + ) + ) + ]; for($i=0; $i <= 25; $i++) { echo "CustomField {$i}\n";