Hello everybody,

I'm trying to create a sqlite database schema from my doctrine metadata. 
Unfortunately, I get the error message "table x already exists".
I figured out that the x table is created even if I exclude this entity 
from my $classes array before I use createSchema($classes). I think that's 
why this table is set as a join table for another (further) entity.

For example: If x is set as join table for y, the x entity is created 
directly after the creation of y, even if the location of x in the $classes 
array is after y.
Could this assumption be correct?

The problem seems to be the following: x is already created after y. When 
the schema tool now tries to create x (x is in $classes on a later 
position!), of course x already exists. That means, I need the schema tool 
to use queries like this: CREATE x IF NOT EXISTS... On this page 
<http://www.doctrine-project.org/jira/browse/DDC-15> my problem is 
described (but not solved, even if its status is closed): The parameter 
--force is enabled by default. So I have to disable --force.

Does anyone know how to disable the force option in my php script, so that 
the schema tool uses IF NOT EXISTS or is there another possible solution 
for my problem?


I would be very thankful if someone could help me.

Greeting Lukas

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to