Debugging doctrine:data-load
I know it drives you MAD when you try to load a bunch of features and get an error like: 1SQLSTATE[23000]: Integrity CONSTRAINT violation: 1062 Duplicate entry '16' FOR KEY 'PRIMARY' Luckily there’s an...
View ArticleForm choice filter auto sort by name
The following snippet will auto-sort all sfWidgetFormDoctrineChoice elements on symfony filters. On BaseFormFilterDoctrine.class.php: 12345678910111213141516171819202122232425262728293031323334abstract...
View ArticleNginx Symfony 1.4 Configuration
We’ve been trying out nginx server for symfony 1.4 applications, the configuration can be a little bit tricky though… Here’s a working example: 12345678910111213141516171819202122232425262728server {...
View ArticleSymfony 1.4 Doctrine 1.2 Migrations How to
Step 1. Create database 1php symfony doctrine:build-db Step 2. Create model classes 1php symfony doctrine:build --all-classes Step 3. Create migration classes based on model classes 1php symfony...
View ArticleDoctrine 1.2 (Symfony 1.4) performance tips & tricks
Sure Doctrine is awesome, but sometimes (every time?), it is also a memory killer. Hopefully there are some handy tricks that can be used on several occasions. Here are some Doctrine 1.2 performance...
View ArticleSymfony1.4 and Doctrine1.2 setting and getting child elements in execution time
Question I’m using Symfony1.4 and Doctrine1.2 to create children objects and print them in execution time. The problem is that I always get the children objects from the first query. I have the...
View Article