From 5523ac8d6f46155625a55d7fed2b262c7001cfc5 Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Fri, 3 Oct 2014 18:31:33 +0200 Subject: [PATCH] ManyToOne(Address) -> ManyToOne(Adress) --- .../DataTransformer/JsonCustomFieldToArrayTransformer.php | 4 ++-- src/CL/CustomFieldsBundle/Form/Type/CustomFieldType.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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',