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

Postgres load fails both when purging and auto-incrementing #216

Open
LoneWolfPR opened this issue Jan 8, 2016 · 1 comment
Open

Postgres load fails both when purging and auto-incrementing #216

LoneWolfPR opened this issue Jan 8, 2016 · 1 comment

Comments

@LoneWolfPR
Copy link

whenever I run app/console doctrine:fixtures:load it fails when trying to purge. I've traced the issue to the my class level annotation in my entity. There's no problem with the annotations at the field level. I've tried both

@ORM\Table(name="table_name", schema="schema_name")

and

@ORM\Table(name="schema_name.table_name")

It tells me it can't find the table.

I gave up on trying to do a regular fixtures load and just used --append. That triggered a new problem. When it goes to add I get an error now saying it can't find the table that is normally used for sequencing. The problem appears to be it's not using the schema name for that either.

I'm using symfony 2.8, doctrine/orm 2.5.3, doctrine/data-fixtures 1.1.1, doctrine/doctrine-fixtures-bundle 2.3.0

EDIT:
The auto-increment is not a problem. That was my error. However, the purge still does not work because of the class-level annotation.

@mikeSimonson
Copy link
Contributor

@LoneWolfPR Is your problem fixed in 1.2.2 ?

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