Tag: Tips

Creating console commands with Symfony2

Symfony 2 is mainly used to create web application, however, sometimes you need to extend your app and need a command line tool to help perform tasks around the application. With symfony 1.4.x these were called tasks and it was possible to create a skeleton by using the symfony generate:task task. Symfony 2 does not […]

October 14 / 2010
Author Pablo
Category PHP, Symfony, Tutorials
Comments 3 Comments
Tags , ,

Creating indexes for your Doctrine ODM documents with Symfony 2

Creating indexes in NoSQL / Document-based databases is quite different compared to traditional relational databases. Since the former are schema-less (there is no table creation), indexes do not get created when the collection or the document is created or inserted. Here is a quick tip that will create all the indexes defined in your documents […]

October 07 / 2010
Author Pablo
Category PHP, Symfony
Comments 1 Comment