#78 ✓resolved

Tools model generator allows spaces in column names

Reported by Kev | March 16th, 2009 @ 07:42 PM | in 0.12

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;

Comments and changes to this ticket

  • Kris Jordan

    Kris Jordan March 30th, 2009 @ 09:27 PM

    • Milestone changed from 0.11.1 to 0.12
    • State changed from “new” to “open”
  • Kris Jordan

    Kris Jordan March 31st, 2009 @ 02:23 PM

    • 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!

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Recess PHP Framework is an open source, full stack, RESTful PHP framework.


People watching this ticket