Skip to content

Commit

Permalink
Fix for ticket #78 - Tools model generator allows leading or trailing…
Browse files Browse the repository at this point in the history
… spaces. Calling this commit a stopgap and creating a new ticket for 0.40 when Tools gets a redesign.
  • Loading branch information
KrisJordan committed Mar 31, 2009
1 parent b9c78eb commit c10b522
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -215,7 +215,7 @@ public function generateModel($app) {
foreach($propertyNames as $i => $name) {
if($name == "") continue;
$property = new ModelProperty();
$property->name = $name;
$property->name = trim($name);
if($name == $primaryKey) {
$property->isPrimaryKey = true;
}
Expand Down

0 comments on commit c10b522

Please sign in to comment.