Including Foreign Keys in Doctrine2 Array Results

http://shout.setfive.com/2015/01/31/including-foreign-keys-in-doctrine2-array-results/

Dlaczego w MySQL’u nie stosować typu FLOAT

http://www.dobreprogramy.pl/slepciu/Dlaczego-w-MySQLu-nie-stosowac-typu-FLOAT,30401.html http://doctrine-dbal.readthedocs.org/en/latest/reference/types.html#decimal-types http://doctrine-orm.readthedocs.org/en/latest/reference/basic-mapping.html

Doctrine batch processing

This chapter shows you how to accomplish bulk inserts, updates and deletes with Doctrine in an efficient way. The main problem with bulk operations is usually not to run out of memory and this is especially what the strategies presented here provide help with.

Connection to a MS SQL Server from Symfony / Doctrine on Mac or Linux

http://dunglas.fr/2014/01/connection-to-a-ms-sql-server-from-symfony-doctrine-on-mac-or-linux/

Differences between ‘knp_paginator’ for distinct: false and distinct: true

https://gist.github.com/kraksoft/9e92b03db66176562358

Partial Doctrine entities

It turns out the solution is really simple. We just need to tell Doctrine of our intentions to fetch just part of the entity, by using the partial DQL keyword. SELECT partial l{id, title} FROM Log l Word of warning though: Doctrine will not lazily fetch the omitted fields, like it does for associations. If ...

8 Reasons Why MySQL’s ENUM Data Type Is Evil

http://komlenic.com/244/8-reasons-why-mysqls-enum-data-type-is-evil/

ENUMs in Symfony 2 and Doctrine

For Symfony 2 projects, add this to the doctrine dbal configuration in app/config.yml: doctrine: dbal: mapping_types: enum: string

Doctrine Query Language

DQL stands for Doctrine Query Language and is an Object Query Language derivate that is very similar to the Hibernate Query Language (HQL) or the Java Persistence Query Language (JPQL).

Doctrine Listeners

We’ve done a lot of work so its time to see one of the most powerful features of Doctrine: events. Using an ORM gives us the flexibility to have hooks that are executed whenever certain things are done, like when an entity is first persisted to the database, updated, or deleted.