dbstudios/doctrine-tweaks

There is no license information available for the latest version (2.4.0) of this package.

A collection of tweaks and additions to Doctrine

2.4.0 2015-05-26 17:50 UTC

This package is auto-updated.

Last update: 2024-12-19 09:45:41 UTC


README

A collection of files that modify or add to Doctrine's functionality.

This package is meant to be used in conjunction with Symfony. It has not been tested outside of the Symfony environment, but should be usable anywhere.

Usage: ChainableEntityManager

This package includes a file named DaybreakStudios\Doctrine\ORM\ChainableEntityManager that allows a few common methods to be chained together. For example:

// $em = getOurEntityManager();

$em
	->persist($entity1)
	->persist($entity2)
	->flush();

Chainable methods are as follows: persist, remove, detach, refresh, and flush.