Symfony: creating a new environment

A typical Symfony application begins with three environments: dev, prod, and test. Creating a new environment is quite easy. Start by creating a new configuration file: # app/config/config_myenvironment.yml imports: – { resource: config_prod.yml }   framework: profiler: { only_exceptions: false }# app/config/config_myenvironment.yml imports: – { resource: config_prod.yml } framework: profiler: { only_exceptions: false } With
Continue reading Symfony: creating a new environment

Symfony: SoftDeleteable behavior extension for Doctrine 2

SoftDeleteable behavior allows to soft delete objects, filtering them at SELECT time by marking them as with a timestamp, but not explicitly removing them from the database. This is part of the Doctrine Gedmo Extension. Gedmo SoftDeletable Doctrine Entities with Unique Index Columns: http://intelligentbee.com/blog/2015/01/09/symfony2-gedmo-softdeletable-doctrine-entities-with-unique-index-columns/

Doctrine filters

Doctrine features a filter system that allows the developer to add SQL to the conditional clauses of queries, regardless the place where the SQL is generated. The filter functionality works on SQL level. Each time the system iterates over all the enabled filters, adding a new SQL part as a filter returns. By adding SQL
Continue reading Doctrine filters