Legend of the Green Dragon

Doctrine

Tags
deprecated
5.0.0

use Dependency Injection when you can, and LotgdKernel::get(ServiceName) when not can use Dependency Injection.

Table of Contents

$doctrine  : EntityManager
Doctrine instance.
getDoctrine()  : EntityManager
Get doctrine entity manager instance.
getDoctrineRepository()  : object|null
Get repository.

Properties

$doctrine

Doctrine instance.

protected EntityManager $doctrine

Methods

getDoctrine()

Get doctrine entity manager instance.

public getDoctrine() : EntityManager
Return values
EntityManager

getDoctrineRepository()

Get repository.

public getDoctrineRepository(mixed $name) : object|null
Parameters
$name : mixed
Return values
object|null

Search results