Hello,
I am trying to setup a schema like:
Base:
actAs:
Sluggable:
fields: [name]
columns:
name:
type: string(512)
notnull: true
Child1:
inheritance:
extends: Base
type: column_aggregation
keyField: type
keyValue: 1
Child2:
inheritance:
extends: Base
type: column_aggregation
keyField: type
keyValue: 2
The problem is that Sluggable does not seem to work correctly in that
case. If I add two Child1 objects with the same name then the slug is
different (second one is postfixed with "-1") and everything is OK. If
I add a Child1 and a Child2 object with the same name then the slugs
are equal and the insert fails with "Integrity constraint violation:
1062 Duplicate entry 'blah blah' for key 2".
Anyone has a hint on how to get around this?
Thanks,