caisse-bliss/v1/.phpdoc/build/classes/Doctrine-ORM-EntityManagerInterface.html
2025-02-09 16:45:35 +01:00

3264 lines
158 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Documentation</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="../">
<link rel="icon" href="images/favicon.ico"/>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/base.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/template.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
<script src="js/template.js"></script>
<script src="js/search.js"></script>
<script defer src="js/searchIndex.js"></script>
</head>
<body id="top">
<header class="phpdocumentor-header phpdocumentor-section">
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
<label class="phpdocumentor-header__menu-icon" for="menu-button">
<i class="fas fa-bars"></i>
</label>
<section data-search-form class="phpdocumentor-search">
<label>
<span class="visually-hidden">Search for</span>
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
</svg>
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
</label>
</section>
<nav class="phpdocumentor-topnav">
<ul class="phpdocumentor-topnav__menu">
</ul>
</nav>
</header>
<main class="phpdocumentor">
<div class="phpdocumentor-section">
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
Menu
</label>
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/doctrinemigrations.html" class="">DoctrineMigrations</a>
</h4>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/hwi.html" class="">HWI</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/hwi-bundle.html" class="">Bundle</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/caissebliss.html" class="">CaisseBliss</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/caissebliss-controller.html" class="">Controller</a>
</li>
<li>
<a href="namespaces/caissebliss-entity.html" class="">Entity</a>
</li>
<li>
<a href="namespaces/caissebliss-form.html" class="">Form</a>
</li>
<li>
<a href="namespaces/caissebliss-repository.html" class="">Repository</a>
</li>
<li>
<a href="namespaces/caissebliss-security.html" class="">Security</a>
</li>
<li>
<a href="namespaces/caissebliss-service.html" class="">Service</a>
</li>
<li>
<a href="namespaces/caissebliss-tests.html" class="">Tests</a>
</li>
<li>
<a href="namespaces/caissebliss-traits.html" class="">Traits</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/tests.html" class="">Tests</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/tests-appbundle.html" class="">AppBundle</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/app.html" class="">App</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/app-controller.html" class="">Controller</a>
</li>
<li>
<a href="namespaces/app-datafixtures.html" class="">DataFixtures</a>
</li>
<li>
<a href="namespaces/app-entity.html" class="">Entity</a>
</li>
<li>
<a href="namespaces/app-form.html" class="">Form</a>
</li>
<li>
<a href="namespaces/app-repository.html" class="">Repository</a>
</li>
<li>
<a href="namespaces/app-security.html" class="">Security</a>
</li>
<li>
<a href="namespaces/app-traits.html" class="">Traits</a>
</li>
<li>
<a href="namespaces/app-tests.html" class="">Tests</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/containervvrt4pd.html" class="">ContainerVvRT4pd</a>
</h4>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/symfony.html" class="">Symfony</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/symfony-config.html" class="">Config</a>
</li>
<li>
<a href="namespaces/symfony-component.html" class="">Component</a>
</li>
<li>
<a href="namespaces/symfony-contracts.html" class="">Contracts</a>
</li>
<li>
<a href="namespaces/symfony-bundle.html" class="">Bundle</a>
</li>
<li>
<a href="namespaces/symfony-bridge.html" class="">Bridge</a>
</li>
<li>
<a href="namespaces/symfony-flex.html" class="">Flex</a>
</li>
<li>
<a href="namespaces/symfony-polyfill.html" class="">Polyfill</a>
</li>
<li>
<a href="namespaces/symfony-runtime.html" class="">Runtime</a>
</li>
<li>
<a href="namespaces/symfony-webpackencorebundle.html" class="">WebpackEncoreBundle</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/composer.html" class="">Composer</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/composer-autoload.html" class="">Autoload</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/doctrine.html" class="">Doctrine</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/doctrine-common.html" class="">Common</a>
</li>
<li>
<a href="namespaces/doctrine-dbal.html" class="">DBAL</a>
</li>
<li>
<a href="namespaces/doctrine-deprecations.html" class="">Deprecations</a>
</li>
<li>
<a href="namespaces/doctrine-bundle.html" class="">Bundle</a>
</li>
<li>
<a href="namespaces/doctrine-inflector.html" class="">Inflector</a>
</li>
<li>
<a href="namespaces/doctrine-instantiator.html" class="">Instantiator</a>
</li>
<li>
<a href="namespaces/doctrine-migrations.html" class="">Migrations</a>
</li>
<li>
<a href="namespaces/doctrine-orm.html" class="">ORM</a>
</li>
<li>
<a href="namespaces/doctrine-persistence.html" class="">Persistence</a>
</li>
<li>
<a href="namespaces/doctrine-sqlformatter.html" class="">SqlFormatter</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/easycorp.html" class="">EasyCorp</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/easycorp-bundle.html" class="">Bundle</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/egulias.html" class="">Egulias</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/egulias-emailvalidator.html" class="">EmailValidator</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/proxymanager.html" class="">ProxyManager</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/proxymanager-autoloader.html" class="">Autoloader</a>
</li>
<li>
<a href="namespaces/proxymanager-exception.html" class="">Exception</a>
</li>
<li>
<a href="namespaces/proxymanager-factory.html" class="">Factory</a>
</li>
<li>
<a href="namespaces/proxymanager-filelocator.html" class="">FileLocator</a>
</li>
<li>
<a href="namespaces/proxymanager-generator.html" class="">Generator</a>
</li>
<li>
<a href="namespaces/proxymanager-generatorstrategy.html" class="">GeneratorStrategy</a>
</li>
<li>
<a href="namespaces/proxymanager-inflector.html" class="">Inflector</a>
</li>
<li>
<a href="namespaces/proxymanager-proxy.html" class="">Proxy</a>
</li>
<li>
<a href="namespaces/proxymanager-proxygenerator.html" class="">ProxyGenerator</a>
</li>
<li>
<a href="namespaces/proxymanager-signature.html" class="">Signature</a>
</li>
<li>
<a href="namespaces/proxymanager-stub.html" class="">Stub</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/laminas.html" class="">Laminas</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/laminas-code.html" class="">Code</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/monolog.html" class="">Monolog</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/monolog-attribute.html" class="">Attribute</a>
</li>
<li>
<a href="namespaces/monolog-formatter.html" class="">Formatter</a>
</li>
<li>
<a href="namespaces/monolog-handler.html" class="">Handler</a>
</li>
<li>
<a href="namespaces/monolog-processor.html" class="">Processor</a>
</li>
<li>
<a href="namespaces/monolog-test.html" class="">Test</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/deepcopy.html" class="">DeepCopy</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/deepcopy-exception.html" class="">Exception</a>
</li>
<li>
<a href="namespaces/deepcopy-filter.html" class="">Filter</a>
</li>
<li>
<a href="namespaces/deepcopy-matcher.html" class="">Matcher</a>
</li>
<li>
<a href="namespaces/deepcopy-reflection.html" class="">Reflection</a>
</li>
<li>
<a href="namespaces/deepcopy-typefilter.html" class="">TypeFilter</a>
</li>
<li>
<a href="namespaces/deepcopy-typematcher.html" class="">TypeMatcher</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/phpparser.html" class="">PhpParser</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/phpparser-builder.html" class="">Builder</a>
</li>
<li>
<a href="namespaces/phpparser-comment.html" class="">Comment</a>
</li>
<li>
<a href="namespaces/phpparser-errorhandler.html" class="">ErrorHandler</a>
</li>
<li>
<a href="namespaces/phpparser-internal.html" class="">Internal</a>
</li>
<li>
<a href="namespaces/phpparser-lexer.html" class="">Lexer</a>
</li>
<li>
<a href="namespaces/phpparser-node.html" class="">Node</a>
</li>
<li>
<a href="namespaces/phpparser-nodevisitor.html" class="">NodeVisitor</a>
</li>
<li>
<a href="namespaces/phpparser-parser.html" class="">Parser</a>
</li>
<li>
<a href="namespaces/phpparser-prettyprinter.html" class="">PrettyPrinter</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/phario.html" class="">PharIo</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/phario-manifest.html" class="">Manifest</a>
</li>
<li>
<a href="namespaces/phario-version.html" class="">Version</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/phpdocumentor.html" class="">phpDocumentor</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/phpdocumentor-reflection.html" class="">Reflection</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/phpstan.html" class="">PHPStan</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/phpstan-phpdocparser.html" class="">PhpDocParser</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/phpunit.html" class="">PHPUnit</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/phpunit-framework.html" class="">Framework</a>
</li>
<li>
<a href="namespaces/phpunit-runner.html" class="">Runner</a>
</li>
<li>
<a href="namespaces/phpunit-textui.html" class="">TextUI</a>
</li>
<li>
<a href="namespaces/phpunit-util.html" class="">Util</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/psr.html" class="">Psr</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/psr-cache.html" class="">Cache</a>
</li>
<li>
<a href="namespaces/psr-container.html" class="">Container</a>
</li>
<li>
<a href="namespaces/psr-eventdispatcher.html" class="">EventDispatcher</a>
</li>
<li>
<a href="namespaces/psr-link.html" class="">Link</a>
</li>
<li>
<a href="namespaces/psr-log.html" class="">Log</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/sebastianbergmann.html" class="">SebastianBergmann</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/sebastianbergmann-codecoverage.html" class="">CodeCoverage</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-fileiterator.html" class="">FileIterator</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-invoker.html" class="">Invoker</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-template.html" class="">Template</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-timer.html" class="">Timer</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-cliparser.html" class="">CliParser</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-codeunit.html" class="">CodeUnit</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-codeunitreverselookup.html" class="">CodeUnitReverseLookup</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-comparator.html" class="">Comparator</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-complexity.html" class="">Complexity</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-diff.html" class="">Diff</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-environment.html" class="">Environment</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-exporter.html" class="">Exporter</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-globalstate.html" class="">GlobalState</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-linesofcode.html" class="">LinesOfCode</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-objectenumerator.html" class="">ObjectEnumerator</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-objectreflector.html" class="">ObjectReflector</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-recursioncontext.html" class="">RecursionContext</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-resourceoperations.html" class="">ResourceOperations</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-type.html" class="">Type</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/theseer.html" class="">TheSeer</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/theseer-tokenizer.html" class="">Tokenizer</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/twig.html" class="">Twig</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/twig-extra.html" class="">Extra</a>
</li>
<li>
<a href="namespaces/twig-cache.html" class="">Cache</a>
</li>
<li>
<a href="namespaces/twig-error.html" class="">Error</a>
</li>
<li>
<a href="namespaces/twig-extension.html" class="">Extension</a>
</li>
<li>
<a href="namespaces/twig-loader.html" class="">Loader</a>
</li>
<li>
<a href="namespaces/twig-node.html" class="">Node</a>
</li>
<li>
<a href="namespaces/twig-nodevisitor.html" class="">NodeVisitor</a>
</li>
<li>
<a href="namespaces/twig-profiler.html" class="">Profiler</a>
</li>
<li>
<a href="namespaces/twig-runtimeloader.html" class="">RuntimeLoader</a>
</li>
<li>
<a href="namespaces/twig-sandbox.html" class="">Sandbox</a>
</li>
<li>
<a href="namespaces/twig-test.html" class="">Test</a>
</li>
<li>
<a href="namespaces/twig-tokenparser.html" class="">TokenParser</a>
</li>
<li>
<a href="namespaces/twig-util.html" class="">Util</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/webmozart.html" class="">Webmozart</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/webmozart-assert.html" class="">Assert</a>
</li>
</ul>
</section>
<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="packages/Application.html" class="">Application</a>
</h4>
</section>
<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
</section>
<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
</section>
</aside>
<div class="phpdocumentor-column -nine phpdocumentor-content">
<section>
<ul class="phpdocumentor-breadcrumbs">
<li class="phpdocumentor-breadcrumb"><a href="namespaces/doctrine.html">Doctrine</a></li>
<li class="phpdocumentor-breadcrumb"><a href="namespaces/doctrine-orm.html">ORM</a></li>
</ul>
<article class="phpdocumentor-element -interface">
<h2 class="phpdocumentor-content__title">
EntityManagerInterface
<span class="phpdocumentor-element__extends">
extends
<a href="classes/Doctrine-Persistence-ObjectManager.html"><abbr title="\Doctrine\Persistence\ObjectManager">ObjectManager</abbr></a> </span>
<div class="phpdocumentor-element__package">
in
<ul class="phpdocumentor-breadcrumbs">
<li><a href="packages/Application.html">Application</a></li>
</ul>
</div>
</h2>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">27</span>
</aside>
<p class="phpdocumentor-summary">EntityManager interface</p>
<h3 id="toc">
Table of Contents
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<h4 id="toc-methods">
Methods
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<dl class="phpdocumentor-table-of-contents">
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_beginTransaction">beginTransaction()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Starts a transaction on the underlying database connection.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_clear">clear()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Clears the ObjectManager. All objects that are currently managed
by this ObjectManager become detached.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_close">close()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Closes the EntityManager. All entities that are currently managed
by this EntityManager become detached. The EntityManager may no longer
be used after it is closed.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_commit">commit()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Commits a transaction on the underlying database connection.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_contains">contains()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Checks if the object is part of the current UnitOfWork and therefore managed.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_copy">copy()</a>
<span>
&nbsp;: object </span>
</dt>
<dd>Creates a copy of the given entity. Can create a shallow or a deep copy.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_createNamedNativeQuery">createNamedNativeQuery()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-NativeQuery.html"><abbr title="\Doctrine\ORM\NativeQuery">NativeQuery</abbr></a> </span>
</dt>
<dd>Creates a NativeQuery from a named native query.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_createNamedQuery">createNamedQuery()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Query.html"><abbr title="\Doctrine\ORM\Query">Query</abbr></a> </span>
</dt>
<dd>Creates a Query from a named query.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_createNativeQuery">createNativeQuery()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-NativeQuery.html"><abbr title="\Doctrine\ORM\NativeQuery">NativeQuery</abbr></a> </span>
</dt>
<dd>Creates a native SQL query.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_createQuery">createQuery()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Query.html"><abbr title="\Doctrine\ORM\Query">Query</abbr></a> </span>
</dt>
<dd>Creates a new Query object.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_createQueryBuilder">createQueryBuilder()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-QueryBuilder.html"><abbr title="\Doctrine\ORM\QueryBuilder">QueryBuilder</abbr></a> </span>
</dt>
<dd>Create a QueryBuilder instance</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_detach">detach()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Detaches an object from the ObjectManager, causing a managed object to
become detached. Unflushed changes made to the object if any
(including removal of the object), will not be synchronized to the database.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_find">find()</a>
<span>
&nbsp;: object|null </span>
</dt>
<dd>Finds an object by its identifier.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_flush">flush()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Flushes all changes to objects that have been queued up to now to the database.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getCache">getCache()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Cache.html"><abbr title="\Doctrine\ORM\Cache">Cache</abbr></a>|null </span>
</dt>
<dd>Returns the cache API for managing the second level cache regions or NULL if the cache is not enabled.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getClassMetadata">getClassMetadata()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a> </span>
</dt>
<dd>Returns the ClassMetadata descriptor for a class.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getConfiguration">getConfiguration()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Configuration.html"><abbr title="\Doctrine\ORM\Configuration">Configuration</abbr></a> </span>
</dt>
<dd>Gets the Configuration used by the EntityManager.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getConnection">getConnection()</a>
<span>
&nbsp;: <abbr title="\Doctrine\DBAL\Connection">Connection</abbr> </span>
</dt>
<dd>Gets the database connection object used by the EntityManager.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getEventManager">getEventManager()</a>
<span>
&nbsp;: <a href="classes/Doctrine-Common-EventManager.html"><abbr title="\Doctrine\Common\EventManager">EventManager</abbr></a> </span>
</dt>
<dd>Gets the EventManager used by the EntityManager.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getExpressionBuilder">getExpressionBuilder()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Query-Expr.html"><abbr title="\Doctrine\ORM\Query\Expr">Expr</abbr></a> </span>
</dt>
<dd>Gets an ExpressionBuilder used for object-oriented construction of query expressions.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getFilters">getFilters()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Query-FilterCollection.html"><abbr title="\Doctrine\ORM\Query\FilterCollection">FilterCollection</abbr></a> </span>
</dt>
<dd>Gets the enabled filters.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getHydrator">getHydrator()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Internal-Hydration-AbstractHydrator.html"><abbr title="\Doctrine\ORM\Internal\Hydration\AbstractHydrator">AbstractHydrator</abbr></a> </span>
</dt>
<dd>Gets a hydrator for the given hydration mode.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_getMetadataFactory">getMetadataFactory()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Gets the metadata factory used to gather the metadata of classes.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getPartialReference">getPartialReference()</a>
<span>
&nbsp;: object|null </span>
</dt>
<dd>Gets a partial reference to the entity identified by the given type and identifier
without actually loading it, if the entity is not yet loaded.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getProxyFactory">getProxyFactory()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Proxy-ProxyFactory.html"><abbr title="\Doctrine\ORM\Proxy\ProxyFactory">ProxyFactory</abbr></a> </span>
</dt>
<dd>Gets the proxy factory used by the EntityManager to create entity proxies.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getReference">getReference()</a>
<span>
&nbsp;: object|null </span>
</dt>
<dd>Gets a reference to the entity identified by the given type and identifier
without actually loading it, if the entity is not yet loaded.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getRepository">getRepository()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Gets the repository for a class.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getUnitOfWork">getUnitOfWork()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-UnitOfWork.html"><abbr title="\Doctrine\ORM\UnitOfWork">UnitOfWork</abbr></a> </span>
</dt>
<dd>Gets the UnitOfWork used by the EntityManager to coordinate operations.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_hasFilters">hasFilters()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Checks whether the Entity Manager has filters.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_initializeObject">initializeObject()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Helper method to initialize a lazy loading proxy or persistent collection.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_isFiltersStateClean">isFiltersStateClean()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Checks whether the state of the filter collection is clean.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_isOpen">isOpen()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Check if the Entity manager is open or closed.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_lock">lock()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Acquire a lock on the given entity.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_newHydrator">newHydrator()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Internal-Hydration-AbstractHydrator.html"><abbr title="\Doctrine\ORM\Internal\Hydration\AbstractHydrator">AbstractHydrator</abbr></a> </span>
</dt>
<dd>Create a new instance for the given hydration mode.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_persist">persist()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Tells the ObjectManager to make an instance managed and persistent.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_refresh">refresh()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Refreshes the persistent state of an object from the database,
overriding any local changes that have not yet been persisted.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_remove">remove()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Removes an object instance.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_rollback">rollback()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Performs a rollback on the underlying database connection.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_transactional">transactional()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Executes a function in a transaction.</dd>
</dl>
<section class="phpdocumentor-methods">
<h3 class="phpdocumentor-elements__header" id="methods">
Methods
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_beginTransaction">
beginTransaction()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_beginTransaction" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">75</span>
</aside>
<p class="phpdocumentor-summary">Starts a transaction on the underlying database connection.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">beginTransaction</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_clear">
clear()
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_clear" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php"><a href="files/vendor-doctrine-persistence-src-persistence-objectmanager.html"><abbr title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php">ObjectManager.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">62</span>
</aside>
<p class="phpdocumentor-summary">Clears the ObjectManager. All objects that are currently managed
by this ObjectManager become detached.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">clear</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_close">
close()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_close" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">221</span>
</aside>
<p class="phpdocumentor-summary">Closes the EntityManager. All entities that are currently managed
by this EntityManager become detached. The EntityManager may no longer
be used after it is closed.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">close</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_commit">
commit()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_commit" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">118</span>
</aside>
<p class="phpdocumentor-summary">Commits a transaction on the underlying database connection.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">commit</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_contains">
contains()
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_contains" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php"><a href="files/vendor-doctrine-persistence-src-persistence-objectmanager.html"><abbr title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php">ObjectManager.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">142</span>
</aside>
<p class="phpdocumentor-summary">Checks if the object is part of the current UnitOfWork and therefore managed.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">contains</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$object</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$object</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-deprecated "
>
<h4 class="phpdocumentor-element__name" id="method_copy">
copy()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_copy" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">235</span>
</aside>
<p class="phpdocumentor-summary">Creates a copy of the given entity. Can create a shallow or a deep copy.</p>
<code class="phpdocumentor-code phpdocumentor-signature -deprecated">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">copy</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$entity</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$deep</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">object</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$entity</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The entity to copy.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$deep</span>
: <span class="phpdocumentor-signature__argument__return-type">bool</span>
= <span class="phpdocumentor-signature__argument__default-value">false</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>FALSE for a shallow copy, TRUE for a deep copy.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_copy#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">deprecated</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link">2.7</span>
<section class="phpdocumentor-description"><p>This method is being removed from the ORM and won't have any replacement</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\BadMethodCallException">BadMethodCallException</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">object</span>
&mdash;
<section class="phpdocumentor-description"><p>The new entity.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_createNamedNativeQuery">
createNamedNativeQuery()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_createNamedNativeQuery" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">162</span>
</aside>
<p class="phpdocumentor-summary">Creates a NativeQuery from a named native query.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">createNamedNativeQuery</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$name</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-NativeQuery.html"><abbr title="\Doctrine\ORM\NativeQuery">NativeQuery</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$name</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-NativeQuery.html"><abbr title="\Doctrine\ORM\NativeQuery">NativeQuery</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_createNamedQuery">
createNamedQuery()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_createNamedQuery" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">143</span>
</aside>
<p class="phpdocumentor-summary">Creates a Query from a named query.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">createNamedQuery</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$name</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Query.html"><abbr title="\Doctrine\ORM\Query">Query</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$name</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Query.html"><abbr title="\Doctrine\ORM\Query">Query</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_createNativeQuery">
createNativeQuery()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_createNativeQuery" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">153</span>
</aside>
<p class="phpdocumentor-summary">Creates a native SQL query.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">createNativeQuery</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$sql</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Query-ResultSetMapping.html"><abbr title="\Doctrine\ORM\Query\ResultSetMapping">ResultSetMapping</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$rsm</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-NativeQuery.html"><abbr title="\Doctrine\ORM\NativeQuery">NativeQuery</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$sql</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$rsm</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Query-ResultSetMapping.html"><abbr title="\Doctrine\ORM\Query\ResultSetMapping">ResultSetMapping</abbr></a></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The ResultSetMapping to use.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-NativeQuery.html"><abbr title="\Doctrine\ORM\NativeQuery">NativeQuery</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_createQuery">
createQuery()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_createQuery" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">134</span>
</aside>
<p class="phpdocumentor-summary">Creates a new Query object.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">createQuery</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$dql</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Query.html"><abbr title="\Doctrine\ORM\Query">Query</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$dql</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
= <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The DQL string.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Query.html"><abbr title="\Doctrine\ORM\Query">Query</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_createQueryBuilder">
createQueryBuilder()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_createQueryBuilder" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">169</span>
</aside>
<p class="phpdocumentor-summary">Create a QueryBuilder instance</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">createQueryBuilder</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-QueryBuilder.html"><abbr title="\Doctrine\ORM\QueryBuilder">QueryBuilder</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-QueryBuilder.html"><abbr title="\Doctrine\ORM\QueryBuilder">QueryBuilder</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_detach">
detach()
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_detach" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php"><a href="files/vendor-doctrine-persistence-src-persistence-objectmanager.html"><abbr title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php">ObjectManager.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">75</span>
</aside>
<p class="phpdocumentor-summary">Detaches an object from the ObjectManager, causing a managed object to
become detached. Unflushed changes made to the object if any
(including removal of the object), will not be synchronized to the database.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">detach</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$object</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Objects which previously referenced the detached object will continue to
reference it.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$object</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The object to detach.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_find">
find()
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_find" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php"><a href="files/vendor-doctrine-persistence-src-persistence-objectmanager.html"><abbr title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php">ObjectManager.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">29</span>
</aside>
<p class="phpdocumentor-summary">Finds an object by its identifier.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">find</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$className</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$id</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">object|null</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>This is just a convenient shortcut for getRepository($className)-&gt;find($id).</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$className</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The class name of the object to find.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$id</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The identity of the object to find.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_find#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">psalm-param</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>class-string&lt;T&gt; $className</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">psalm-return</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>T|null</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">template</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>T of object</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">object|null</span>
&mdash;
<section class="phpdocumentor-description"><p>The found object.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_flush">
flush()
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_flush" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php"><a href="files/vendor-doctrine-persistence-src-persistence-objectmanager.html"><abbr title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php">ObjectManager.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">94</span>
</aside>
<p class="phpdocumentor-summary">Flushes all changes to objects that have been queued up to now to the database.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">flush</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>This effectively synchronizes the in-memory state of managed objects with the
database.</p>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getCache">
getCache()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getCache" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">45</span>
</aside>
<p class="phpdocumentor-summary">Returns the cache API for managing the second level cache regions or NULL if the cache is not enabled.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getCache</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Cache.html"><abbr title="\Doctrine\ORM\Cache">Cache</abbr></a>|null</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Cache.html"><abbr title="\Doctrine\ORM\Cache">Cache</abbr></a>|null</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getClassMetadata">
getClassMetadata()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getClassMetadata" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">345</span>
</aside>
<p class="phpdocumentor-summary">Returns the ClassMetadata descriptor for a class.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getClassMetadata</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$className</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$className</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getClassMetadata#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">psalm-param</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>string|class-string&lt;T&gt; $className</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">psalm-return</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>Mapping\ClassMetadata&lt;T&gt;</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">psalm-template</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>T of object</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getConfiguration">
getConfiguration()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getConfiguration" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">264</span>
</aside>
<p class="phpdocumentor-summary">Gets the Configuration used by the EntityManager.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getConfiguration</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Configuration.html"><abbr title="\Doctrine\ORM\Configuration">Configuration</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Configuration.html"><abbr title="\Doctrine\ORM\Configuration">Configuration</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getConnection">
getConnection()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getConnection" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">52</span>
</aside>
<p class="phpdocumentor-summary">Gets the database connection object used by the EntityManager.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getConnection</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><abbr title="\Doctrine\DBAL\Connection">Connection</abbr></span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><abbr title="\Doctrine\DBAL\Connection">Connection</abbr></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getEventManager">
getEventManager()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getEventManager" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">257</span>
</aside>
<p class="phpdocumentor-summary">Gets the EventManager used by the EntityManager.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getEventManager</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-Common-EventManager.html"><abbr title="\Doctrine\Common\EventManager">EventManager</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-Common-EventManager.html"><abbr title="\Doctrine\Common\EventManager">EventManager</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getExpressionBuilder">
getExpressionBuilder()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getExpressionBuilder" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">68</span>
</aside>
<p class="phpdocumentor-summary">Gets an ExpressionBuilder used for object-oriented construction of query expressions.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getExpressionBuilder</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Query-Expr.html"><abbr title="\Doctrine\ORM\Query\Expr">Expr</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Example:</p>
<code class="prettyprint">
$qb = $em->createQueryBuilder();
$expr = $em->getExpressionBuilder();
$qb->select('u')->from('User', 'u')
->where($expr->orX($expr->eq('u.id', 1), $expr->eq('u.id', 2)));
</code>
</section>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Query-Expr.html"><abbr title="\Doctrine\ORM\Query\Expr">Expr</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getFilters">
getFilters()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getFilters" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">319</span>
</aside>
<p class="phpdocumentor-summary">Gets the enabled filters.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getFilters</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Query-FilterCollection.html"><abbr title="\Doctrine\ORM\Query\FilterCollection">FilterCollection</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Query-FilterCollection.html"><abbr title="\Doctrine\ORM\Query\FilterCollection">FilterCollection</abbr></a></span>
&mdash;
<section class="phpdocumentor-description"><p>The active filter collection.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-deprecated "
>
<h4 class="phpdocumentor-element__name" id="method_getHydrator">
getHydrator()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getHydrator" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">293</span>
</aside>
<p class="phpdocumentor-summary">Gets a hydrator for the given hydration mode.</p>
<code class="phpdocumentor-code phpdocumentor-signature -deprecated">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getHydrator</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string|int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$hydrationMode</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Internal-Hydration-AbstractHydrator.html"><abbr title="\Doctrine\ORM\Internal\Hydration\AbstractHydrator">AbstractHydrator</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>This method caches the hydrator instances which is used for all queries that don't
selectively iterate over the result.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$hydrationMode</span>
: <span class="phpdocumentor-signature__argument__return-type">string|int</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getHydrator#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">deprecated</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">psalm-param</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>string|AbstractQuery::HYDRATE_* $hydrationMode</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Internal-Hydration-AbstractHydrator.html"><abbr title="\Doctrine\ORM\Internal\Hydration\AbstractHydrator">AbstractHydrator</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getMetadataFactory">
getMetadataFactory()
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_getMetadataFactory" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php"><a href="files/vendor-doctrine-persistence-src-persistence-objectmanager.html"><abbr title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php">ObjectManager.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">126</span>
</aside>
<p class="phpdocumentor-summary">Gets the metadata factory used to gather the metadata of classes.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getMetadataFactory</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_getMetadataFactory#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">psalm-return</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>ClassMetadataFactory&lt;ClassMetadata<object>&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getPartialReference">
getPartialReference()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getPartialReference" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">212</span>
</aside>
<p class="phpdocumentor-summary">Gets a partial reference to the entity identified by the given type and identifier
without actually loading it, if the entity is not yet loaded.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getPartialReference</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$entityName</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$identifier</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">object|null</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>The returned reference may be a partial object if the entity is not yet loaded/managed.
If it is a partial object it will not initialize the rest of the entity state on access.
Thus you can only ever safely access the identifier of an entity obtained through
this method.</p>
<p>The use-cases for partial references involve maintaining bidirectional associations
without loading one side of the association or to update an entity without loading it.
Note, however, that in the latter case the original (persistent) entity data will
never be visible to the application (especially not event listeners) as it will
never be loaded in the first place.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$entityName</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The name of the entity type.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$identifier</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The entity identifier.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getPartialReference#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">psalm-param</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>class-string&lt;T&gt; $entityName</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">psalm-return</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>T|null</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">template</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>T</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">object|null</span>
&mdash;
<section class="phpdocumentor-description"><p>The (partial) entity reference</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getProxyFactory">
getProxyFactory()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getProxyFactory" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">312</span>
</aside>
<p class="phpdocumentor-summary">Gets the proxy factory used by the EntityManager to create entity proxies.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getProxyFactory</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Proxy-ProxyFactory.html"><abbr title="\Doctrine\ORM\Proxy\ProxyFactory">ProxyFactory</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Proxy-ProxyFactory.html"><abbr title="\Doctrine\ORM\Proxy\ProxyFactory">ProxyFactory</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getReference">
getReference()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getReference" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">186</span>
</aside>
<p class="phpdocumentor-summary">Gets a reference to the entity identified by the given type and identifier
without actually loading it, if the entity is not yet loaded.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getReference</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$entityName</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$id</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">object|null</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$entityName</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The name of the entity type.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$id</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The entity identifier.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getReference#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">psalm-param</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>class-string&lt;T&gt; $entityName</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">psalm-return</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>T|null</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Doctrine-ORM-Exception-ORMException.html"><abbr title="\Doctrine\ORM\Exception\ORMException">ORMException</abbr></a></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">template</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>T</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">object|null</span>
&mdash;
<section class="phpdocumentor-description"><p>The entity reference.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getRepository">
getRepository()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getRepository" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">38</span>
</aside>
<p class="phpdocumentor-summary">Gets the repository for a class.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getRepository</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$className</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$className</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getRepository#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">psalm-param</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>class-string&lt;T&gt; $className</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">psalm-return</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>EntityRepository&lt;T&gt;</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">template</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>T of object</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getUnitOfWork">
getUnitOfWork()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getUnitOfWork" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">278</span>
</aside>
<p class="phpdocumentor-summary">Gets the UnitOfWork used by the EntityManager to coordinate operations.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getUnitOfWork</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-UnitOfWork.html"><abbr title="\Doctrine\ORM\UnitOfWork">UnitOfWork</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-UnitOfWork.html"><abbr title="\Doctrine\ORM\UnitOfWork">UnitOfWork</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_hasFilters">
hasFilters()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_hasFilters" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">333</span>
</aside>
<p class="phpdocumentor-summary">Checks whether the Entity Manager has filters.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">hasFilters</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
&mdash;
<section class="phpdocumentor-description"><p>True, if the EM has a filter collection.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_initializeObject">
initializeObject()
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_initializeObject" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php"><a href="files/vendor-doctrine-persistence-src-persistence-objectmanager.html"><abbr title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php">ObjectManager.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">135</span>
</aside>
<p class="phpdocumentor-summary">Helper method to initialize a lazy loading proxy or persistent collection.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">initializeObject</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$obj</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>This method is a no-op for other objects.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$obj</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_isFiltersStateClean">
isFiltersStateClean()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_isFiltersStateClean" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">326</span>
</aside>
<p class="phpdocumentor-summary">Checks whether the state of the filter collection is clean.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isFiltersStateClean</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
&mdash;
<section class="phpdocumentor-description"><p>True, if the filter collection is clean.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_isOpen">
isOpen()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_isOpen" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">271</span>
</aside>
<p class="phpdocumentor-summary">Check if the Entity manager is open or closed.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isOpen</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_lock">
lock()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_lock" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">250</span>
</aside>
<p class="phpdocumentor-summary">Acquire a lock on the given entity.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">lock</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$entity</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$lockMode</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int|<abbr title="\DateTimeInterface">DateTimeInterface</abbr>|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$lockVersion</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$entity</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$lockMode</span>
: <span class="phpdocumentor-signature__argument__return-type">int</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$lockVersion</span>
: <span class="phpdocumentor-signature__argument__return-type">int|<abbr title="\DateTimeInterface">DateTimeInterface</abbr>|null</span>
= <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_lock#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">psalm-param</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>LockMode::* $lockMode</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Doctrine-ORM-OptimisticLockException.html"><abbr title="\Doctrine\ORM\OptimisticLockException">OptimisticLockException</abbr></a></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Doctrine-ORM-PessimisticLockException.html"><abbr title="\Doctrine\ORM\PessimisticLockException">PessimisticLockException</abbr></a></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_newHydrator">
newHydrator()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_newHydrator" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">305</span>
</aside>
<p class="phpdocumentor-summary">Create a new instance for the given hydration mode.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">newHydrator</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string|int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$hydrationMode</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Internal-Hydration-AbstractHydrator.html"><abbr title="\Doctrine\ORM\Internal\Hydration\AbstractHydrator">AbstractHydrator</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$hydrationMode</span>
: <span class="phpdocumentor-signature__argument__return-type">string|int</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_newHydrator#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">psalm-param</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>string|AbstractQuery::HYDRATE_* $hydrationMode</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Doctrine-ORM-Exception-ORMException.html"><abbr title="\Doctrine\ORM\Exception\ORMException">ORMException</abbr></a></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Internal-Hydration-AbstractHydrator.html"><abbr title="\Doctrine\ORM\Internal\Hydration\AbstractHydrator">AbstractHydrator</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_persist">
persist()
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_persist" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php"><a href="files/vendor-doctrine-persistence-src-persistence-objectmanager.html"><abbr title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php">ObjectManager.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">43</span>
</aside>
<p class="phpdocumentor-summary">Tells the ObjectManager to make an instance managed and persistent.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">persist</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$object</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>The object will be entered into the database as a result of the flush operation.</p>
<p>NOTE: The persist operation always considers objects that are not yet known to
this ObjectManager as NEW. Do not pass detached objects to the persist operation.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$object</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The instance to make managed and persistent.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_refresh">
refresh()
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_refresh" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php"><a href="files/vendor-doctrine-persistence-src-persistence-objectmanager.html"><abbr title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php">ObjectManager.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">85</span>
</aside>
<p class="phpdocumentor-summary">Refreshes the persistent state of an object from the database,
overriding any local changes that have not yet been persisted.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">refresh</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$object</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$object</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The object to refresh.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_remove">
remove()
<a href="classes/Doctrine-Persistence-ObjectManager.html#method_remove" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php"><a href="files/vendor-doctrine-persistence-src-persistence-objectmanager.html"><abbr title="vendor/doctrine/persistence/src/Persistence/ObjectManager.php">ObjectManager.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">54</span>
</aside>
<p class="phpdocumentor-summary">Removes an object instance.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">remove</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$object</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>A removed object will be removed from the database as a result of the flush operation.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$object</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The object instance to remove.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_rollback">
rollback()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_rollback" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">125</span>
</aside>
<p class="phpdocumentor-summary">Performs a rollback on the underlying database connection.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">rollback</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
</article>
<article
class="phpdocumentor-element
-method
-public
-deprecated "
>
<h4 class="phpdocumentor-element__name" id="method_transactional">
transactional()
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_transactional" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-entitymanagerinterface.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php">EntityManagerInterface.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">93</span>
</aside>
<p class="phpdocumentor-summary">Executes a function in a transaction.</p>
<code class="phpdocumentor-code phpdocumentor-signature -deprecated">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">transactional</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">callable&nbsp;</span><span class="phpdocumentor-signature__argument__name">$func</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>The function gets passed this EntityManager instance as an (optional) parameter.</p>
<p><a href="flush"></a> is invoked prior to transaction commit.</p>
<p>If an exception occurs during execution of the function or flushing or transaction commit,
the transaction is rolled back, the EntityManager closed and the exception re-thrown.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$func</span>
: <span class="phpdocumentor-signature__argument__return-type">callable</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The function to execute transactionally.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_transactional#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">deprecated</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link">2.10</span>
<section class="phpdocumentor-description"><p>Use <a href="wrapInTransaction"></a> instead.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
&mdash;
<section class="phpdocumentor-description"><p>The non-empty value returned from the closure or true instead.</p>
</section>
</section>
</article>
</section>
<div class="phpdocumentor-modal" id="source-view">
<div class="phpdocumentor-modal-bg" data-exit-button></div>
<div class="phpdocumentor-modal-container">
<div class="phpdocumentor-modal-content">
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
</div>
<button data-exit-button class="phpdocumentor-modal__close">&times;</button>
</div>
</div>
<script type="text/javascript">
(function () {
function loadExternalCodeSnippet(el, url, line) {
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
const language = 'php';
const code = document.createElement('code');
code.className = 'language-' + language;
pre.textContent = '';
pre.setAttribute('data-line', line)
code.textContent = 'Loading…';
pre.appendChild(code);
var xhr = new XMLHttpRequest();
xhr.open('GET', src, true);
xhr.onreadystatechange = function () {
if (xhr.readyState !== 4) {
return;
}
if (xhr.status < 400 && xhr.responseText) {
code.textContent = xhr.responseText;
Prism.highlightElement(code);
return;
}
if (xhr.status === 404) {
code.textContent = '✖ Error: File could not be found';
return;
}
if (xhr.status >= 400) {
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
return;
}
code.textContent = '✖ Error: An unknown error occurred';
};
xhr.send(null);
});
}
const modalButtons = document.querySelectorAll("[data-modal]");
const openedAsLocalFile = window.location.protocol === 'file:';
if (modalButtons.length > 0 && openedAsLocalFile) {
console.warn(
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
'browsers block XHR requests when a page is opened this way'
);
}
modalButtons.forEach(function (trigger) {
if (openedAsLocalFile) {
trigger.setAttribute("hidden", "hidden");
}
trigger.addEventListener("click", function (event) {
event.preventDefault();
const modal = document.getElementById(trigger.dataset.modal);
if (!modal) {
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
return;
}
modal.classList.add("phpdocumentor-modal__open");
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
const exits = modal.querySelectorAll("[data-exit-button]");
exits.forEach(function (exit) {
exit.addEventListener("click", function (event) {
event.preventDefault();
modal.classList.remove("phpdocumentor-modal__open");
});
});
});
});
})();
</script>
</article>
</section>
<section class="phpdocumentor-on-this-page__sidebar">
<section class="phpdocumentor-on-this-page__content">
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
<ul class="phpdocumentor-list -clean">
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
<li>
<ul class="phpdocumentor-list -clean">
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#toc-constants">Constants</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#toc-methods">Methods</a></li>
</ul>
</li>
<li class="phpdocumentor-on-this-page-section__title">Methods</li>
<li>
<ul class="phpdocumentor-list -clean">
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_beginTransaction">beginTransaction()</a></li>
<li><a href="classes/Doctrine-Persistence-ObjectManager.html#method_clear">clear()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_close">close()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_commit">commit()</a></li>
<li><a href="classes/Doctrine-Persistence-ObjectManager.html#method_contains">contains()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_copy">copy()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_createNamedNativeQuery">createNamedNativeQuery()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_createNamedQuery">createNamedQuery()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_createNativeQuery">createNativeQuery()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_createQuery">createQuery()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_createQueryBuilder">createQueryBuilder()</a></li>
<li><a href="classes/Doctrine-Persistence-ObjectManager.html#method_detach">detach()</a></li>
<li><a href="classes/Doctrine-Persistence-ObjectManager.html#method_find">find()</a></li>
<li><a href="classes/Doctrine-Persistence-ObjectManager.html#method_flush">flush()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getCache">getCache()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getClassMetadata">getClassMetadata()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getConfiguration">getConfiguration()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getConnection">getConnection()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getEventManager">getEventManager()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getExpressionBuilder">getExpressionBuilder()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getFilters">getFilters()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getHydrator">getHydrator()</a></li>
<li><a href="classes/Doctrine-Persistence-ObjectManager.html#method_getMetadataFactory">getMetadataFactory()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getPartialReference">getPartialReference()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getProxyFactory">getProxyFactory()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getReference">getReference()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getRepository">getRepository()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_getUnitOfWork">getUnitOfWork()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_hasFilters">hasFilters()</a></li>
<li><a href="classes/Doctrine-Persistence-ObjectManager.html#method_initializeObject">initializeObject()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_isFiltersStateClean">isFiltersStateClean()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_isOpen">isOpen()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_lock">lock()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_newHydrator">newHydrator()</a></li>
<li><a href="classes/Doctrine-Persistence-ObjectManager.html#method_persist">persist()</a></li>
<li><a href="classes/Doctrine-Persistence-ObjectManager.html#method_refresh">refresh()</a></li>
<li><a href="classes/Doctrine-Persistence-ObjectManager.html#method_remove">remove()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_rollback">rollback()</a></li>
<li><a href="classes/Doctrine-ORM-EntityManagerInterface.html#method_transactional">transactional()</a></li>
</ul>
</li>
</ul>
</section>
</section>
</div>
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
<section class="phpdocumentor-search-results__dialog">
<header class="phpdocumentor-search-results__header">
<h2 class="phpdocumentor-search-results__title">Search results</h2>
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
</header>
<section class="phpdocumentor-search-results__body">
<ul class="phpdocumentor-search-results__entries"></ul>
</section>
</section>
</section>
</div>
<a href="classes/Doctrine-ORM-EntityManagerInterface.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
</main>
<script>
cssVars({});
</script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
</body>
</html>