I have the same problem as reported here: Doctrine 2.2 wants to recreate all my tables
I\'m using PostgreSQL and my tables are in the public schema.
app/cons
If you're using the public
schema, you don't have to do anything special, because PostgreSQL fallbacks to it automatically.
However, if you want to specify another schema — or enforce the usage of the public
schema in case PostgreSQL fallbacks to another one for some reason — the @Table
annotation has the schema property:
use Doctrine\ORM\Mapping\Table;
/**
* @Table(schema="some_schema")
*/
class Entity
{
// ...
}