Can a table have multiple slugs in Doctrine?
问题 Is it possible to have multiple slugs on one table in Doctrine? I tried this in my yaml-file: Article: tableName: tst_article actAs: Sluggable: unique: true fields: [title] canUpdate: true Sluggable: unique: true fields: [text] name: secondSlug columns: id: type: integer(8) primary: true autoincrement: true category_id: type: integer(8) title: type: text(255) text: type: clob But after generating the sql only the secondSlug was generated... 回答1: It is possible. In your table definition write: