diff --git a/src/CL/CustomFieldsBundle/Form/DataTransformer/JsonCustomFieldToArrayTransformer.php b/src/CL/CustomFieldsBundle/Form/DataTransformer/JsonCustomFieldToArrayTransformer.php
index 372b218b7..70b72deab 100644
--- a/src/CL/CustomFieldsBundle/Form/DataTransformer/JsonCustomFieldToArrayTransformer.php
+++ b/src/CL/CustomFieldsBundle/Form/DataTransformer/JsonCustomFieldToArrayTransformer.php
@@ -70,7 +70,7 @@ class JsonCustomFieldToArrayTransformer implements DataTransformerInterface {
echo "
- - - -
";
*/
- if($this->customField[$key]->getType() === 'ManyToOne(Address)') {
+ if($this->customField[$key]->getType() === 'ManyToOne(Adress)') {
$customFieldsArrayRet[$key] = $this->om
->getRepository('CLCustomFieldsBundle:Adress')
->findOneById($value);
@@ -104,7 +104,7 @@ class JsonCustomFieldToArrayTransformer implements DataTransformerInterface {
foreach ($customFieldsArray as $key => $value) {
$traited = false;
if(array_key_exists($key, $this->customField)) {
- if($this->customField[$key]->getType() === 'ManyToOne(Address)') {
+ if($this->customField[$key]->getType() === 'ManyToOne(Adress)') {
$customFieldsArrayRet[$key] = $value->getId();
/*
diff --git a/src/CL/CustomFieldsBundle/Form/Type/CustomFieldType.php b/src/CL/CustomFieldsBundle/Form/Type/CustomFieldType.php
index 88b515bc2..1d2936331 100644
--- a/src/CL/CustomFieldsBundle/Form/Type/CustomFieldType.php
+++ b/src/CL/CustomFieldsBundle/Form/Type/CustomFieldType.php
@@ -38,7 +38,7 @@ class CustomFieldType extends AbstractType
->findAll();
foreach ($customFields as $cf) {
- if($cf->getType() === 'ManyToOne(Address)') {
+ if($cf->getType() === 'ManyToOne(Adress)') {
$builder->add($cf->getLabel(), 'entity', array(
'class' => 'CLCustomFieldsBundle:Adress',
'property' => 'data',