a2lix/AutoFormBundle

DoctrineORMInfo class unnecessary check?

Opened this issue ยท 7 comments

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?

Nobody?

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

up

Up!

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

any news?

Unfortunately, I manipulated DoctrineORMInfo file

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