I'm adding data to the database using entities and using the flush () and persist () Doctrine.
But when my entity has a null attribute, it does not insert into the database. The insert is made only ...

I have a page where an admin can create new periods of time. Now when the admin wants to add a new period I would like to check if there isn't another period already.
This is my current code, but I ...

I have defined a custom Doctrine data type for Uuid. When I search for an object using find($uuid), it works correctly, i.e. the attribute is converted using convertToDatabaseValue() before executing ...

I use the FOFUserBundle. Whenever a user is registered it creates a new entry in the database. For extension purposes I want another table that saves the Id and Username of that user. Later on I use ...

The project I'm currently working on should migrate to Symfony2.
The Database has been designed for a while and already contains data.
Most important thig is — some tables has column(s) as TIME Type ...

I'm using Doctrine v2.4.6 (with Symphony, if that matters) for a kind of complex project. The issue I'm having is when running an importer (that handles up to 200k rows per file, multiple files). My ...

I have the existing table pricing, on migration script I would like to add two new columns pricing_set_id and coe_id which both are foreign keys.
On up function, it runs perfectly without any errors, ...

I have a parent entity Category and a child entity Article. They are defined by a ManyToMany relation. One article can be taged in one or more category and every Category can be tagged in more than ...

I tried to gather few information about those following way to delete automatically child entity when a parent entity is deleted. Seems that the most commun way is to use one those three annotation: ...

I have a simple Symfony2 app that needs to connect to a particular database based on the subdomain. Database names are the same as subdomain names.
Domain: alpha.example.com - DB name: alpha
Domain: ...

I recently implemented the FOSUserBundle in my website as the login procedure. I want it to expand the Author class. So whenever a new user is registered via the FOSUSerBundle a new entry is created ...

I have a working blog but I thought a bit late about nice urls.
I dont want to use slugable and so on bundles because I dont have much time to read documentations and implement them.
Is it possible ...