Development

#7460 (For a module for a table with non-integer primary key the admin generator should add a \w+ requirement)

You must first sign up to be able to contribute.

Ticket #7460 (new defect)

Opened 4 years ago

Last modified 4 years ago

For a module for a table with non-integer primary key the admin generator should add a \w+ requirement

Reported by: bertdemiranda Assigned to: fabien
Priority: minor Milestone:
Component: generator Version: 1.2.9
Keywords: admin generator Cc:
Qualification: Unreviewed

Description

The admin generator generates the following route

language_talen:

class: sfDoctrineRouteCollection options:

model: Language module: talen prefix_path: talen column: code with_wildcard_routes: true

for table Language which has a non-integer primary key

Language:

tableName: languages columns:

code: { type: string(2), fixed: true, primary: true } languagename: string(50)

The above route is not recognised and in my case the routing reverts to the default route where the code field is then interpreted as an action, which does not exist of course.

When i modify the route to:

language_talen:

class: sfDoctrineRouteCollection requirements: { code: \w+ } options:

model: Language module: talen prefix_path: talen column: code with_wildcard_routes: true

everything works fine.

Change History

11/02/09 21:23:34 changed by bertdemiranda

  • version changed from 1.2.8 to 1.2.9.