Changeset 13390
- Timestamp:
- 11/27/08 09:40:43 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfDoctrinePlugin/trunk/lib/task/sfDoctrineGenerateAdminTask.class.php
r13330 r13390 108 108 if (!isset($routesArray[$name])) 109 109 { 110 $databaseManager = new sfDatabaseManager($this->configuration); 111 $primaryKey = Doctrine::getTable($model)->getIdentifier(); 110 112 $module = $options['module'] ? $options['module'] : $name; 111 113 $content = sprintf(<<<EOF … … 116 118 module: %s 117 119 prefix_path: %s 120 column: %s 118 121 with_wildcard_routes: true 119 122 120 123 121 124 EOF 122 , $name, $model, $module, $module ).$content;125 , $name, $model, $module, $module, $primaryKey).$content; 123 126 124 127 file_put_contents($routing, $content);

