Monthly Archives: April 2009

Upgrade to Symfony 1.2: Have your layouts stopped working?

I had a Symfony 1.0 app and I finally decided to make the leap to 1.2. Lo and behold, this mysterious error cropped up:
Notice: Undefined variable: site in /path/to/myproject/apps/site/templates/layout.php on line 10
If you’re upgrading from 1.0, you may suddenly notice that you get these “undefined variable” errors. That’s because global variables are deprecated in [...]

Posted in Technology | Leave a comment

RubyOnRails.org Parked

Remember to pay your domain fees, folks:

RubyOnRails.org actually showed this for a good few hours. TechCrunch has the full story.

Posted in Funny, Technology | Leave a comment

Symfony, Doctrine, preSave and postSave

My new Symfony app calls a remote web service as part of the user creation process. Since this is intimately linked with the model (I want this behavior executed for my fixtures, too) it makes no sense to call the web service from the controller.
Like Ruby on Rails, Doctrine has some handy built-in hooks to [...]

Posted in Technology | 1 Comment

Trouble with MySQL Foreign Keys?

There I was, coding up a fresh Doctrine schema for a Symfony app, when my plans to implement foreign keys were repeatedly foiled:
SQLSTATE[HY000]: General error: 1005 Can’t create table ‘./mydb/#sql-xxxx.frm’ (errno: 150). Failing Query: ALTER TABLE cow ADD FOREIGN KEY (barn_id) REFERENCES barn(id)
I was using InnoDB, both tables were there, both columns were there, what [...]

Posted in Angry Development Tips, Technology | Leave a comment