-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Console] doctrine:generate:entities when entity is in subfolder #3019
Comments
Same error with function names and type casting in parameters when you try and use the "bundle shortcut": AcmeBundle:Subject |
Not sure if this bug is appropiate here or belongs in Doctrine, but you can reference Paper as a targetEntity from Subject as this: AcmeBundle:Performance\Paper, but you can't reference Subject from Paper as AcmeBundle:Subject |
@TiXz it is not a bug. and your mapping for the relation is wrong. First, the namespace separator is |
Yes alright, I got the |
using the short class name allows to reference a class in the same namespace, not a class in the |
Should this be closed ? |
yeah. It was a misuse of the shortcuts in the Doctrine mapping |
I have an enitity folder that looks similar to this:
The subject has an association like this:
Likewise on the paper side:
When running doctrine:generate:entities it will generate a function like this:
Where the function name contains an illegal character and the last slashes should have been backslashes.
I hope this bug report has enough information to replicate the bug.
The text was updated successfully, but these errors were encountered: