Содержание

doctrine

Описание таблиц

Описание полей

Описание связей

Описание индексов

yml

    uniqueConstraints:
        search_idx:
            columns: ['name', 'part']

php

<?php
/**
 * @Entity
 * @Table(name="ecommerce_products",uniqueConstraints={@UniqueConstraint(name="search_idx", columns={"name", "email"})})
 */
class ECommerceProduct
{
}

Кэш

http://docs.doctrine-project.org/en/2.0.x/reference/caching.html

http://stackoverflow.com/questions/10605439/doctrine2-caching-of-updated-elements http://stackoverflow.com/questions/15559686/clearing-query-cache-in-symfony2-doctrine

Полезные ссылки