mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
ManyToOne(Address) -> ManyToOne(Adress)
This commit is contained in:
parent
c2869edbed
commit
5523ac8d6f
@ -70,7 +70,7 @@ class JsonCustomFieldToArrayTransformer implements DataTransformerInterface {
|
||||
echo "<br> - - - - <br>";
|
||||
*/
|
||||
|
||||
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();
|
||||
|
||||
/*
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user