Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DoctrineORMInfo class unnecessary check? #15

Open
ceesvanegmond opened this issue Aug 15, 2019 · 7 comments
Open

DoctrineORMInfo class unnecessary check? #15

ceesvanegmond opened this issue Aug 15, 2019 · 7 comments

Comments

@ceesvanegmond
Copy link

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
Copy link
Author

Nobody?

@tamert
Copy link

tamert commented Dec 26, 2020

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

tamert added a commit to tamert/AutoFormBundle that referenced this issue Dec 27, 2020
a2lix#15
how shall we do?
@muhep06
Copy link

muhep06 commented Dec 28, 2020

up

@bilalceyylan
Copy link

Up!

@tamererdogan
Copy link

tamererdogan commented Dec 28, 2020

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

@cagrisungur
Copy link

any news?

@tamert
Copy link

tamert commented Dec 29, 2020

Unfortunately, I manipulated DoctrineORMInfo file

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants