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.
Activity
Ivar Nesje
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | sluggable.patch [ 10416 ] |
Ivar Nesje
made changes -
| Attachment | sluggable.patch [ 10416 ] |
Ivar Nesje
made changes -
| Attachment | sluggableInheritance.patch [ 10420 ] |
Ivar Nesje
made changes -
| Attachment | sluggableInheritance.patch [ 10420 ] |
Ivar Nesje
made changes -
| Attachment | sluggable.patch [ 10426 ] |
Jonathan H. Wage
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Fix Version/s | 1.2.2 [ 10047 ] | |
| Resolution | Fixed [ 1 ] |
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DC-419, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
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: