a2lix / AutoFormBundle

Automate Symfony form building
https://a2lix.fr/bundles/auto-form
MIT License
83 stars 30 forks source link

DoctrineORMInfo class unnecessary check? #15

Open ceesvanegmond opened 5 years ago

ceesvanegmond commented 5 years ago

Hi there,

I'm using TranslationFormBundle and its working perfectly. In my case; i'm using the TranslationsType in Sonata to add translated field. I want to use a ManyToOne field as translated field; and I do get an error. The error is class xxx doesn't have a field yyy. Where yyy is the ManyToOne field.

After a bit of researching I found a solution. If I remove the following check (https://github.com/a2lix/AutoFormBundle/blob/master/src/ObjectInfo/DoctrineORMInfo.php#L65) everything is working fine.

My question is; can this check be removed? Or why is it there?

ceesvanegmond commented 5 years ago

Nobody?

tamert commented 3 years ago

I'm using EasyAdmin and I had the same problem ... did you fixed the issue ?

muhep06 commented 3 years ago

up

bilalceyylan commented 3 years ago

Up!

tamererdogan commented 3 years ago

I have a same issue, please fix this problem. Thank you !

cagrisungur commented 3 years ago

any news?

tamert commented 3 years ago

Unfortunately, I manipulated DoctrineORMInfo file

  a2lix_auto_form.object_info.doctrine_orm_info:
    class: App\ORM\DoctrineORMInfo
    arguments: ['@a2lix_auto_form.doctrine.metadata_factory']