Skip to content
This repository was archived by the owner on May 2, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Form/Type/CrudType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Opifer\CrudBundle\Form\Type;

use Genemu\Bundle\FormBundle\Form\JQuery\Type\Select2Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
Expand Down Expand Up @@ -95,8 +93,8 @@ public function buildForm(FormBuilderInterface $builder, array $options)
]);
} elseif ($relation['targetEntity'] == $this->valuesetClass) {
$builder->add($relation['fieldName'], 'opifer_valueset');
}else {
$builder->add($relation['fieldName'], new Select2Type('entity'), [
} else {
$builder->add($relation['fieldName'], 'entity', [
'class' => $relation['targetEntity'],
'property' => 'name',
'empty_value' => '(empty)',
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public function registerBundles()
$bundles = array(
...
new Braincrafted\Bundle\BootstrapBundle\BraincraftedBootstrapBundle(),
new Genemu\Bundle\FormBundle\GenemuFormBundle(),
new JMS\SerializerBundle\JMSSerializerBundle(),
new Liuggio\ExcelBundle\LiuggioExcelBundle(),
new Opifer\CrudBundle\OpiferCrudBundle(),
Expand Down
4 changes: 3 additions & 1 deletion Transformer/DoctrineTypeTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ public function transform($type)
case 'float':
return 'number';
case 'date':
return 'date';
case 'datetime':
return 'datetime';
case 'time':
return 'genemu_jquerydate';
return 'time';
case 'array':
case 'simple_array':
case 'json_array':
Expand Down
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
"sensio/framework-extra-bundle": "~3.0",

"gedmo/doctrine-extensions": "~2.3",
"genemu/form-bundle": "~2.2",
"jms/serializer-bundle": "~1.0",
"pagerfanta/pagerfanta": "~1.0.3",
"willdurand/js-translation-bundle": "2.2.1",
"liuggio/excelbundle": "^2.0",

"opifer/rulesengine-bundle": "@dev",
"opifer/rulesengine": "@dev"
},
Expand Down