Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Tools model generator allows spaces in column names

#78

To Reproduce:

  • Generate a New Model for any app using the Recess Tools.
  • During creation, select "table does not exist".
  • Enter a column name beginning with a space.
  • " bar"

Expected Results:

Recess trims whitespace

Actual Results:

The generated model class retains the space in the column name, resulting in a PHP error.

Parse error: parse error, expecting T_VARIABLE' in C:\Web\recess\copy\apps\welcome\models\foo.class.php on line 17


     public $ bar;

Reported by Kev · March 16th, 2009 @ 07:42 PM

State: resolved
Milestone: 0.12
Assigned to: Kris Jordan Kris Jordan

Activity

  1. Kris Jordan
    Kris Jordan
    • Milestone changed from 0.11.1 to 0.12
    • State changed from new to open

    March 30th, 2009 @ 09:27 PM

  2. Kris Jordan
    Kris Jordan
    • State changed from open to resolved

    This ticket is fixed in commit c10b522

    Creating a new ticket regarding the bigger problem of 'friendlier model gen' for the 0.40 release when Tools gets a redesign.

    Thanks for the bug submission!

    March 31st, 2009 @ 02:23 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.