Details
Description
I've the same problem than this post : http://groups.google.com/group/doctrine-user/browse_thread/thread/3737fd293fef5fda/d86a8bc2578e4bac
Then, I've set "uniqueBy: [name, type] ", and my data goes in database BUT they can have the same slug.
So I can't retrieve an objects wich has equal slug with another.
The column aggregation inheritance does'nt take care of others slugs.
First, inheritance is great feature, thanks doctrine team.
But I have this problem too.
I have identified, the problem is related to class: "Doctrine_Template_Listener_Sluggable", to method: getUniqueSlug($record, $slugFromFields). In mentioned method, table is retrieved from $record ($record->getTable()), but record could be inherited class, so query result on the table is limited only to records of the inherited class. But there could be already rows of other inherited classes with same slug in the database.
Fast hack to solve it, works for me: