SQLSTATE[HY000]: General error: 1005 Can't create table '*' (errno: 150) 3

You may or may have not already stumbled upon this rather obscure error message (no, I'm not starting a serie on obscures error messages). Well the first thing to think when you encounter this is your foreign keys. This message generally denotes a failure in foreign keys creation, for example when...

Using the timestamp data type in doctrine fixtures 4

Please note that to be valid, you have to enclose the value within single quotes. For example, say you have the following (totally useless) schema: Foobar: columns: published_at: { type: timestamp } And you want to create fixtures for this table. You might go this way (please also note that symfony...

Multiple domains for one symfony project, the basics, config file version 7

When I published my post about using a single symfony application to serve multiple domains using a database to store the site-specific data, there was some people to complain about the extra query you get on each request. Right. Using a (cached) config file instead is not that hard as long as you...

Multiple domains for one symfony project, the basics 4

So let's say you run a car franchise, and you have several shops that you want to be able to manage through a web application. The application would be same for each shop, except you'd have to manage different sets of data and have specific assets for each shop. Fear not, this is very easy to...

Top tags