Open kunxin-chor opened 6 years ago
Do you have the extension enabled in config/doctrine.php
?
And when you say flushing config cache, have you flushed the metadata cache for doctrine? If you are using the file cache driver for laravel, doctrine will save the metadata cache with strict permissions. Meaning you have to be the owner or admin to delete them. The issue is that artisan doesn't tell you if it couldn't delete them. It's a problem with laravel's cache file driver. My advice is to use array driver for metadata while making new entities.
Another thing, are you import the gedmo annotations to the class?
use Gedmo\Mapping\Annotation as Gedmo;
I've got same problem, using trait "Timestamps".
It already has
use Gedmo\Mapping\Annotation as Gedmo;
I tried:
doctrine:clear:metadata:cache
Adding
LaravelDoctrine\Extensions\GedmoExtensionsServiceProvider::class,
to config/app.php solved the issue. I understand that this is described in official documentation
https://www.laraveldoctrine.org/docs/1.3/extensions/installation
However the latest one is for 1.3, moreover for the reason described in above comment, I assumed that GedmoExtensionsServiceProvider::class
should be auto-discovered.
Hi I am trying to use the Timestamp extension, however when I attempt update the schema I get the following:
Here's the property in question:
I have tried: