-
Notifications
You must be signed in to change notification settings - Fork 22
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
Error running doctrine:generate:entities command when using timestampable #37
Comments
Are you using it standalone or with Laravel Doctrine ORM? |
With Laravel Doctrine ORM |
Are you running on the latest version? Because this should be automatically handled by the LD-ORM. |
|
Can you see what it does at this line:
It should set the |
The code on that line is:
Running dd on get getClassMetadataFactoryName method returns correctly:
I looked at the command, and the error seemed to get generated by the line:
I've updated the line DisconnectedClassMetadataFactory.php:39 from:
to
It seems to work OK now. |
@guiwoda Any idea what we can do about this? |
@patrickbrouwers the problem seems to be at this line: https://github.com/laravel-doctrine/orm/blob/1.1/src/Console/GenerateEntitiesCommand.php#L50 But ORM doesn't know it needs an ExtensibleClassMetadataFactory. We couldinject it on the command and let fluent override the injection somehow. |
I'm getting the following error when trying to run this command for an entity using timestampable:
Mapping defined as follows:
The text was updated successfully, but these errors were encountered: