PHPackages                             lamansky/doctrine - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. lamansky/doctrine

ActiveLibrary[Database &amp; ORM](/categories/database)

lamansky/doctrine
=================

A collection of classes useful in almost any project that uses the Doctrine ORM.

1.0.1(4y ago)018MITPHPPHP &gt;=7.4.0

Since Aug 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/lamansky/doctrine)[ Packagist](https://packagist.org/packages/lamansky/doctrine)[ Docs](https://github.com/lamansky/doctrine)[ RSS](/packages/lamansky-doctrine/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (3)Used By (0)

Doctrine Utilities
==================

[](#doctrine-utilities)

A collection of utility classes for the [Doctrine](https://www.doctrine-project.org/projects/orm.html) ORM (Object Relational Mapper).

Installation
------------

[](#installation)

With [Composer](http://getcomposer.org) installed on your computer and initialized for your project, run this command in your project’s root directory:

```
composer require lamansky/doctrine
```

Requires PHP 7.4 or above.

You don’t need to install Doctrine2 separately. It will be bundled with this package.

Classes
-------

[](#classes)

The library contains two classes that are useful for almost any Doctrine project: `ProjectEntityManager` and `UTCDateTimeType`.

### ProjectEntityManager

[](#projectentitymanager)

An abstract EntityManagerDecorator that automatically namespaces your Entity class names. To use, first create a class for your project that extends `ProjectEntityManager` and defines the class namespace prefixes:

```
