stof/StofDoctrineExtensionsBundle — Issue #69: Disabling mappings causes behavior to fail
Author: aharonp
Created: 2011-10-10 01:23:48+00:00
State: open

Since I'm not currently using Translatable or Loggable, I disabled the mappings for the bundle shown:

orm:
auto_mapping: true
mappings:
StofDoctrineExtensionsBundle: false

However, when using the Tree (closure) behavior I get an error:

No identifier/primary key specified for Entity 'Test\TestBundle\Entity\NodeClosure'. Every Entity must have an identifier/primary key.

If I turn the mappings back on (`StofDoctrineExtensionsBundle: ~`), which should be unrelated, then it seems to work. The problem is Doctrine then creates those translation and log tables in the database which I don't want.

Is this a bug?

A related question:
Let's say I just want the Loggable behavior but not the Translatable behavior (or vice versa), is there a way to configure the bundle so that it only creates the database tables that are actually needed and not all tables?