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

Pivot tables disappear when you turn on extensions?! #30

Open
Sztukmistrz opened this issue Jan 10, 2017 · 1 comment
Open

Pivot tables disappear when you turn on extensions?! #30

Sztukmistrz opened this issue Jan 10, 2017 · 1 comment

Comments

@Sztukmistrz
Copy link

Sztukmistrz commented Jan 10, 2017

ORM - is working properly,
ALC - is working properly,
migrations - are working properly,
but when I turned on ALL the extensions in the "config / doctrine.php"

'extensions'                 => [
        LaravelDoctrine\ORM\Extensions\TablePrefix\TablePrefixExtension::class,
        .......
        LaravelDoctrine\Extensions\Uploadable\UploadableExtension::class
    ],
...
   'gedmo'                      => [
        'all_mappings' => true
    ],

and I ran the migration:

   1. php artisan doctrine:migrations:diff 
   2. php artisan doctrine:migrations:migrate

Pivot tables ( 'permission_user' etc ) disappear from the database (MySQL)!?

Step by step, I turn on the extensions one by one, I repeated migrations.
The tables disappear when you turn on of this two extensions:
LoggableExtension
BlameableExtension

OK. this extensions needs USER but... active (login) or fake user will not help in console/terminal
The problem probably exists in the class migration?
For now, the only way to circumvent the problem is to remove (comment //) extensions during migration and then turn them on again.

@patrickbrouwers
Copy link
Contributor

Might be fixed by #37

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

2 participants