Doctrine 1.2: Can a model have two instances of the sluggabl behavior?

Posted by prodigitalson on Stack Overflow See other posts from Stack Overflow or by prodigitalson
Published on 2010-04-10T22:06:26Z Indexed on 2010/04/10 22:13 UTC
Read the original article Hit count: 168

Filed under:
|
|

I dont see any direct mention on using multiple slugs (or any behavior for that matter) for single model. Is there a way to use the sluggable behavior to generate two separate slugs for a model?

For example i need to generate two slugs for every record a product_id consisting of a slugified company name and sku and a distributor_id consisting of a different slugified company name.

Obviously i could write this myself fairly easily, im just wondering if this can be done quickly with Sluggable.

© Stack Overflow or respective owner

Related posts about php

Related posts about model