AutoFormBundle icon indicating copy to clipboard operation
AutoFormBundle copied to clipboard

DoctrineORMInfo class unnecessary check?

Open ceesvanegmond opened this issue 5 years ago • 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?

ceesvanegmond avatar Aug 15 '19 09:08 ceesvanegmond

Nobody?

ceesvanegmond avatar Aug 23 '19 09:08 ceesvanegmond

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

tamert avatar Dec 26 '20 23:12 tamert

up

muhep06 avatar Dec 28 '20 13:12 muhep06

Up!

bilalceyylan avatar Dec 28 '20 13:12 bilalceyylan

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

tamererdogan avatar Dec 28 '20 13:12 tamererdogan

any news?

cagrisungur avatar Dec 28 '20 13:12 cagrisungur

Unfortunately, I manipulated DoctrineORMInfo file

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

tamert avatar Dec 29 '20 11:12 tamert