A drop-in Doctrine2 implementation for Laravel 5+

A drop-in Doctrine2 implementation for Laravel 5+


<?php

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

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

EntityManager::persist($scientist);
EntityManager::flush();