A Doctrine ORM bridge for Laravel 5

1.7.3 2020-10-16 04:26 UTC

This package is auto-updated.

Last update: 2024-10-29 05:59:41 UTC


README

GitHub release Travis StyleCI Scrutinizer Packagist Packagist

A drop-in Doctrine ORM 2 implementation for Laravel 5+

$scientist = new Scientist(
    'Albert',
    'Einstein'
);

$scientist->addTheory(
    new Theory('Theory of relativity')
);

EntityManager::persist($scientist);
EntityManager::flush();
  • Easy configuration
  • Pagination
  • Pre-configured metadata, connections and caching
  • Extendable: extend or add your own drivers for metadata, connections or cache
  • Fluent, Annotations, YAML, SimplifiedYAML, XML, SimplifiedXML, Config and Static PHP metadata mappings
  • Multiple entity managers and connections
  • Laravel naming strategy
  • Simple authentication implementation
  • Password reminders implementation
  • Doctrine console commands
  • DoctrineExtensions supported
  • Timestamps, Softdeletes and TablePrefix listeners

Documentation

Read the full documentation.

Versions

Require this package

composer require "laravel-doctrine/orm:1.6.*"

Because of the auto package discovery feature Laravel 5.5 has, the ServiceProvider and Facades are automatically registered.

To publish the config use:

php artisan vendor:publish --tag="config"

License

This package is licensed under the MIT license.