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

8270 lines
418 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 -class">
<h2 class="phpdocumentor-content__title">
UnitOfWork
<div class="phpdocumentor-element__package">
in package
<ul class="phpdocumentor-breadcrumbs">
<li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
</ul>
</div>
<span class="phpdocumentor-element__implements">
implements
<a href="classes/Doctrine-Persistence-PropertyChangedListener.html"><abbr title="\Doctrine\Persistence\PropertyChangedListener">PropertyChangedListener</abbr></a> </span>
</h2>
<div class="phpdocumentor-label-line">
</div>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">87</span>
</aside>
<p class="phpdocumentor-summary">The UnitOfWork is responsible for tracking changes to objects during an
&quot;object-level&quot; transaction and for writing out changes to the database
in the correct order.</p>
<section class="phpdocumentor-description"><p>Internal note: This class contains highly performance-sensitive code.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#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-import-type</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>AssociationMapping from ClassMetadata</p>
</section>
</dd>
</dl>
<h3 id="toc">
Table of Contents
<a href="classes/Doctrine-ORM-UnitOfWork.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<h4 id="toc-interfaces">
Interfaces
<a href="classes/Doctrine-ORM-UnitOfWork.html#toc-interfaces" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<dl class="phpdocumentor-table-of-contents">
<dt class="phpdocumentor-table-of-contents__entry -interface"><a href="classes/Doctrine-Persistence-PropertyChangedListener.html"><abbr title="\Doctrine\Persistence\PropertyChangedListener">PropertyChangedListener</abbr></a></dt><dd>Contract for classes that are potential listeners of a {@see NotifyPropertyChanged}
implementor.</dd> </dl>
<h4 id="toc-constants">
Constants
<a href="classes/Doctrine-ORM-UnitOfWork.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<dl class="phpdocumentor-table-of-contents">
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#constant_HINT_DEFEREAGERLOAD">HINT_DEFEREAGERLOAD</a>
<span>
&nbsp;= &#039;deferEagerLoad&#039; </span>
</dt>
<dd>Hint used to collect all primary keys of associated entities during hydration
and execute it in a dedicated query afterwards</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#constant_STATE_DETACHED">STATE_DETACHED</a>
<span>
&nbsp;= 3 </span>
</dt>
<dd>A detached entity is an instance with persistent state and identity that is not
(or no longer) associated with an EntityManager (and a UnitOfWork).</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#constant_STATE_MANAGED">STATE_MANAGED</a>
<span>
&nbsp;= 1 </span>
</dt>
<dd>An entity is in MANAGED state when its persistence is managed by an EntityManager.</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#constant_STATE_NEW">STATE_NEW</a>
<span>
&nbsp;= 2 </span>
</dt>
<dd>An entity is new if it has just been instantiated (i.e. using the &quot;new&quot; operator)
and is not (yet) managed by an EntityManager.</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#constant_STATE_REMOVED">STATE_REMOVED</a>
<span>
&nbsp;= 4 </span>
</dt>
<dd>A removed entity instance is an instance with a persistent identity,
associated with an EntityManager, whose persistent state will be deleted
on commit.</dd>
</dl>
<h4 id="toc-properties">
Properties
<a href="classes/Doctrine-ORM-UnitOfWork.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<dl class="phpdocumentor-table-of-contents">
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_hasCache">$hasCache</a>
<span>
&nbsp;: bool </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_collectionDeletions">$collectionDeletions</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>All pending collection deletions.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_collectionPersisters">$collectionPersisters</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>The collection persister instances used to persist collections.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_collectionUpdates">$collectionUpdates</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>All pending collection updates.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_eagerLoadingEntities">$eagerLoadingEntities</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Map of Entity Class-Names and corresponding IDs that should eager loaded when requested.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_em">$em</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-EntityManagerInterface.html"><abbr title="\Doctrine\ORM\EntityManagerInterface">EntityManagerInterface</abbr></a> </span>
</dt>
<dd>The EntityManager that &quot;owns&quot; this UnitOfWork instance.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityChangeSets">$entityChangeSets</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Map of entity changes. Keys are object ids (spl_object_id).</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityDeletions">$entityDeletions</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>A list of all pending entity deletions.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityIdentifiers">$entityIdentifiers</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Map of all identifiers of managed entities.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityInsertions">$entityInsertions</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>A list of all pending entity insertions.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityStates">$entityStates</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>The (cached) states of any known entities.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityUpdates">$entityUpdates</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>A list of all pending entity updates.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_evm">$evm</a>
<span>
&nbsp;: <a href="classes/Doctrine-Common-EventManager.html"><abbr title="\Doctrine\Common\EventManager">EventManager</abbr></a> </span>
</dt>
<dd>The EventManager used for dispatching events.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_extraUpdates">$extraUpdates</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Any pending extra updates that have been scheduled by persisters.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_hydrationCompleteHandler">$hydrationCompleteHandler</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Internal-HydrationCompleteHandler.html"><abbr title="\Doctrine\ORM\Internal\HydrationCompleteHandler">HydrationCompleteHandler</abbr></a> </span>
</dt>
<dd>Helper for handling completion of hydration</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_identifierFlattener">$identifierFlattener</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Utility-IdentifierFlattener.html"><abbr title="\Doctrine\ORM\Utility\IdentifierFlattener">IdentifierFlattener</abbr></a> </span>
</dt>
<dd>The IdentifierFlattener used for manipulating identifiers</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_identityMap">$identityMap</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>The identity map that holds references to all managed entities that have
an identity. The entities are grouped by their class name.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_listenersInvoker">$listenersInvoker</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Event-ListenersInvoker.html"><abbr title="\Doctrine\ORM\Event\ListenersInvoker">ListenersInvoker</abbr></a> </span>
</dt>
<dd>The ListenersInvoker used for dispatching events.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_nonCascadedNewDetectedEntities">$nonCascadedNewDetectedEntities</a>
<span>
&nbsp;: array&lt;int, <abbr title="array{: \Doctrine\ORM\AssociationMapping, : object}">AssociationMapping, : object}</abbr>&gt; </span>
</dt>
<dd>New entities that were discovered through relationships that were not
marked as cascade-persist. During flush, this array is populated and
then pruned of any entities that were discovered through a valid
cascade-persist path. (Leftovers cause an error.)</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_originalEntityData">$originalEntityData</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Map of the original entity data of managed entities.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_orphanRemovals">$orphanRemovals</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Orphaned entities that are scheduled for removal.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_persisters">$persisters</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>The entity persister instances used to persist entity instances.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_readOnlyObjects">$readOnlyObjects</a>
<span>
&nbsp;: array&lt;int, true&gt; </span>
</dt>
<dd>Read-Only objects are never evaluated</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_reflectionPropertiesGetter">$reflectionPropertiesGetter</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Mapping-Reflection-ReflectionPropertiesGetter.html"><abbr title="\Doctrine\ORM\Mapping\Reflection\ReflectionPropertiesGetter">ReflectionPropertiesGetter</abbr></a> </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_scheduledForSynchronization">$scheduledForSynchronization</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Map of entities that are scheduled for dirty checking at commit time.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_visitedCollections">$visitedCollections</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>List of collections visited during changeset calculation on a commit-phase of a UnitOfWork.</dd>
</dl>
<h4 id="toc-methods">
Methods
<a href="classes/Doctrine-ORM-UnitOfWork.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-UnitOfWork.html#method___construct">__construct()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Initializes a new UnitOfWork instance, bound to the given EntityManager.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_clear">clear()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Clears the UnitOfWork.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_clearEntityChangeSet">clearEntityChangeSet()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>INTERNAL:
Clears the property changeset of the entity with the given OID.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_commit">commit()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Commits the UnitOfWork, executing all operations that have been postponed
up to this point. The state of all managed entities will be synchronized with
the database.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_computeChangeSets">computeChangeSets()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Computes all the changes that have been done to entities and collections
since the last commit and stores these changes in the _entityChangeSet map
temporarily for access by the persisters, until the UoW commit is finished.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_detach">detach()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Detaches an entity from the persistence management. It&#039;s persistence will
no longer be managed by Doctrine.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getCollectionPersister">getCollectionPersister()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Persisters-Collection-CollectionPersister.html"><abbr title="\Doctrine\ORM\Persisters\Collection\CollectionPersister">CollectionPersister</abbr></a> </span>
</dt>
<dd>Gets a collection persister for a collection-valued association.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getCommitOrderCalculator">getCommitOrderCalculator()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Internal-CommitOrderCalculator.html"><abbr title="\Doctrine\ORM\Internal\CommitOrderCalculator">CommitOrderCalculator</abbr></a> </span>
</dt>
<dd>Gets the CommitOrderCalculator used by the UnitOfWork to order commits.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getEntityChangeSet">getEntityChangeSet()</a>
<span>
&nbsp;: array&lt;string|int, array&lt;string|int, mixed&gt;&gt; </span>
</dt>
<dd>Gets the changeset for an entity.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getEntityIdentifier">getEntityIdentifier()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Gets the identifier of an entity.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getEntityPersister">getEntityPersister()</a>
<span>
&nbsp;: <a href="classes/Doctrine-ORM-Persisters-Entity-EntityPersister.html"><abbr title="\Doctrine\ORM\Persisters\Entity\EntityPersister">EntityPersister</abbr></a> </span>
</dt>
<dd>Gets the EntityPersister for an Entity.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getEntityState">getEntityState()</a>
<span>
&nbsp;: int </span>
</dt>
<dd>Gets the state of an entity with regard to the current unit of work.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getIdentityMap">getIdentityMap()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Gets the identity map of the UnitOfWork.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getIdHashByEntity">getIdHashByEntity()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Gets the id hash of an entity.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getIdHashByIdentifier">getIdHashByIdentifier()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Gets the id hash of an entity by its identifier.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getOriginalEntityData">getOriginalEntityData()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Gets the original data of an entity. The original data is the data that was
present at the time the entity was reconstituted from the database.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getScheduledCollectionDeletions">getScheduledCollectionDeletions()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Gets the currently scheduled complete collection deletions</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getScheduledCollectionUpdates">getScheduledCollectionUpdates()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Gets the currently scheduled collection inserts, updates and deletes.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getScheduledEntityDeletions">getScheduledEntityDeletions()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Gets the currently scheduled entity deletions in this UnitOfWork.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getScheduledEntityInsertions">getScheduledEntityInsertions()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Gets the currently scheduled entity insertions in this UnitOfWork.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getScheduledEntityUpdates">getScheduledEntityUpdates()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Gets the currently scheduled entity updates in this UnitOfWork.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getSingleIdentifierValue">getSingleIdentifierValue()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Processes an entity instance to extract their identifier values.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_hasPendingInsertions">hasPendingInsertions()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Checks whether the UnitOfWork has any pending insertions.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.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-UnitOfWork.html#method_isCollectionScheduledForDeletion">isCollectionScheduledForDeletion()</a>
<span>
&nbsp;: bool </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isEntityScheduled">isEntityScheduled()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Checks whether an entity is scheduled for insertion, update or deletion.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isInIdentityMap">isInIdentityMap()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Checks whether an entity is registered in the identity map of this UnitOfWork.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isReadOnly">isReadOnly()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Is this entity read only?</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isScheduledForDelete">isScheduledForDelete()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Checks whether an entity is registered as removed/deleted with the unit
of work.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isScheduledForDirtyCheck">isScheduledForDirtyCheck()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Checks whether an entity is registered to be checked in the unit of work.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isScheduledForInsert">isScheduledForInsert()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Checks whether an entity is scheduled for insertion.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isScheduledForUpdate">isScheduledForUpdate()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Checks whether an entity is registered as dirty in the unit of work.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_loadCollection">loadCollection()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Initializes (loads) an uninitialized persistent collection of an entity.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.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-UnitOfWork.html#method_markReadOnly">markReadOnly()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Marks an entity as read-only so that it will not be considered for updates during UnitOfWork#commit().</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_merge">merge()</a>
<span>
&nbsp;: object </span>
</dt>
<dd>Merges the state of the given detached entity into this UnitOfWork.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_persist">persist()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Persists an entity as part of the current unit of work.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_propertyChanged">propertyChanged()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Notifies this UnitOfWork of a property change in an entity.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_refresh">refresh()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Refreshes the state of the given entity from the database, overwriting
any local, unpersisted changes.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_registerManaged">registerManaged()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>INTERNAL:
Registers an entity as managed.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_remove">remove()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Deletes an entity as part of the current unit of work.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleCollectionDeletion">scheduleCollectionDeletion()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>INTERNAL:
Schedules a complete collection for removal when this UnitOfWork commits.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleForDelete">scheduleForDelete()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>INTERNAL:
Schedules an entity for deletion.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleForDirtyCheck">scheduleForDirtyCheck()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Schedules an entity for dirty-checking at commit-time.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleForInsert">scheduleForInsert()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Schedules an entity for insertion into the database.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleForUpdate">scheduleForUpdate()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Schedules an entity for being updated.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_size">size()</a>
<span>
&nbsp;: int </span>
</dt>
<dd>Calculates the size of the UnitOfWork. The size of the UnitOfWork is the
number of entities in the identity map.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_triggerEagerLoads">triggerEagerLoads()</a>
<span>
&nbsp;: void </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_tryGetById">tryGetById()</a>
<span>
&nbsp;: object|false </span>
</dt>
<dd>Tries to find an entity with the given identifier in the identity map of
this UnitOfWork.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_addToEntityIdentifiersAndEntityMap">addToEntityIdentifiersAndEntityMap()</a>
<span>
&nbsp;: void </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_afterTransactionComplete">afterTransactionComplete()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Perform whatever processing is encapsulated here after completion of the transaction.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_afterTransactionRolledBack">afterTransactionRolledBack()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Perform whatever processing is encapsulated here after completion of the rolled-back.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_assertThatThereAreNoUnintentionallyNonPersistedAssociations">assertThatThereAreNoUnintentionallyNonPersistedAssociations()</a>
<span>
&nbsp;: void </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadeDetach">cascadeDetach()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Cascades a detach operation to associated entities.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadeMerge">cascadeMerge()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Cascades a merge operation to associated entities.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadePersist">cascadePersist()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Cascades the save operation to associated entities.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadeRefresh">cascadeRefresh()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Cascades a refresh operation to associated entities.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadeRemove">cascadeRemove()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Cascades the delete operation to associated entities.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_clearEntityInsertionsForEntityName">clearEntityInsertionsForEntityName()</a>
<span>
&nbsp;: void </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_clearIdentityMapForEntityName">clearIdentityMapForEntityName()</a>
<span>
&nbsp;: void </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_computeAssociationChanges">computeAssociationChanges()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Computes the changes of an association.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_computeScheduleInsertsChangeSets">computeScheduleInsertsChangeSets()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Computes the changesets of all entities scheduled for insertion.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_computeSingleEntityChangeSet">computeSingleEntityChangeSet()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Only flushes the given entity according to a ruleset that keeps the UoW consistent.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_convertSingleFieldIdentifierToPHPValue">convertSingleFieldIdentifierToPHPValue()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_dispatchOnFlushEvent">dispatchOnFlushEvent()</a>
<span>
&nbsp;: void </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_dispatchPostFlushEvent">dispatchPostFlushEvent()</a>
<span>
&nbsp;: void </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_doDetach">doDetach()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Executes a detach operation on the given entity.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_doMerge">doMerge()</a>
<span>
&nbsp;: object </span>
</dt>
<dd>Executes a merge operation on an entity.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_doPersist">doPersist()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Persists an entity as part of the current unit of work.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_doRefresh">doRefresh()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Executes a refresh operation on an entity.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_doRemove">doRemove()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Deletes an entity as part of the current unit of work.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_ensureVersionMatch">ensureVersionMatch()</a>
<span>
&nbsp;: void </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_executeDeletions">executeDeletions()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Executes all entity deletions for entities of the specified type.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_executeExtraUpdates">executeExtraUpdates()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Executes any extra updates that have been scheduled.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_executeInserts">executeInserts()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Executes all entity insertions for entities of the specified type.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_executeUpdates">executeUpdates()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Executes all entity updates for entities of the specified type.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getCommitOrder">getCommitOrder()</a>
<span>
&nbsp;: array&lt;int, <a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a>&gt; </span>
</dt>
<dd>Gets the commit order.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_hasMissingIdsWhichAreForeignKeys">hasMissingIdsWhichAreForeignKeys()</a>
<span>
&nbsp;: bool </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isIdentifierEquals">isIdentifierEquals()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Verifies if two given entities actually are the same based on identifier comparison</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isLoaded">isLoaded()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Tests if an entity is loaded - must either be a loaded proxy or not a proxy</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_mergeEntityStateIntoManagedCopy">mergeEntityStateIntoManagedCopy()</a>
<span>
&nbsp;: void </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_newInstance">newInstance()</a>
<span>
&nbsp;: object </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_normalizeIdentifier">normalizeIdentifier()</a>
<span>
&nbsp;: array&lt;string, mixed&gt; </span>
</dt>
<dd>Given a flat identifier, this method will produce another flat identifier, but with all
association fields that are mapped as identifiers replaced by entity references, recursively.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_objToStr">objToStr()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Helper method to show an object as string.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_performCallbackOnCachedPersister">performCallbackOnCachedPersister()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Performs an action after the transaction.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_persistNew">persistNew()</a>
<span>
&nbsp;: void </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_postCommitCleanup">postCommitCleanup()</a>
<span>
&nbsp;: void </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_updateAssociationWithMergedEntity">updateAssociationWithMergedEntity()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Sets/adds associated managed copies into the previous entity&#039;s association field</dd>
</dl>
<section class="phpdocumentor-constants">
<h3 class="phpdocumentor-elements__header" id="constants">
Constants
<a href="classes/Doctrine-ORM-UnitOfWork.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_HINT_DEFEREAGERLOAD">
HINT_DEFEREAGERLOAD
<a href="classes/Doctrine-ORM-UnitOfWork.html#constant_HINT_DEFEREAGERLOAD" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">119</span>
</aside>
<p class="phpdocumentor-summary">Hint used to collect all primary keys of associated entities during hydration
and execute it in a dedicated query afterwards</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">HINT_DEFEREAGERLOAD</span>
= <span class="phpdocumentor-signature__default-value">&#039;deferEagerLoad&#039;</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#constant_HINT_DEFEREAGERLOAD#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">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="https://www.doctrine-project.org/projects/doctrine-orm/en/stable/reference/dql-doctrine-query-language.html#temporarily-change-fetch-mode-in-dql">https://www.doctrine-project.org/projects/doctrine-orm/en/stable/reference/dql-doctrine-query-language.html#temporarily-change-fetch-mode-in-dql</a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_STATE_DETACHED">
STATE_DETACHED
<a href="classes/Doctrine-ORM-UnitOfWork.html#constant_STATE_DETACHED" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">104</span>
</aside>
<p class="phpdocumentor-summary">A detached entity is an instance with persistent state and identity that is not
(or no longer) associated with an EntityManager (and a UnitOfWork).</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">STATE_DETACHED</span>
= <span class="phpdocumentor-signature__default-value">3</span>
</code>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_STATE_MANAGED">
STATE_MANAGED
<a href="classes/Doctrine-ORM-UnitOfWork.html#constant_STATE_MANAGED" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">92</span>
</aside>
<p class="phpdocumentor-summary">An entity is in MANAGED state when its persistence is managed by an EntityManager.</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">STATE_MANAGED</span>
= <span class="phpdocumentor-signature__default-value">1</span>
</code>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_STATE_NEW">
STATE_NEW
<a href="classes/Doctrine-ORM-UnitOfWork.html#constant_STATE_NEW" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">98</span>
</aside>
<p class="phpdocumentor-summary">An entity is new if it has just been instantiated (i.e. using the &quot;new&quot; operator)
and is not (yet) managed by an EntityManager.</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">STATE_NEW</span>
= <span class="phpdocumentor-signature__default-value">2</span>
</code>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_STATE_REMOVED">
STATE_REMOVED
<a href="classes/Doctrine-ORM-UnitOfWork.html#constant_STATE_REMOVED" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">111</span>
</aside>
<p class="phpdocumentor-summary">A removed entity instance is an instance with a persistent identity,
associated with an EntityManager, whose persistent state will be deleted
on commit.</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">STATE_REMOVED</span>
= <span class="phpdocumentor-signature__default-value">4</span>
</code>
</article>
</section>
<section class="phpdocumentor-properties">
<h3 class="phpdocumentor-elements__header" id="properties">
Properties
<a href="classes/Doctrine-ORM-UnitOfWork.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_hasCache">
$hasCache
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_hasCache" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">307</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">bool</span>
<span class="phpdocumentor-signature__name">$hasCache</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_collectionDeletions">
$collectionDeletions
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_collectionDeletions" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">225</span>
</aside>
<p class="phpdocumentor-summary">All pending collection deletions.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$collectionDeletions</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_collectionDeletions#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;int, PersistentCollection&lt;array-key, object&gt;&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_collectionPersisters">
$collectionPersisters
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_collectionPersisters" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">262</span>
</aside>
<p class="phpdocumentor-summary">The collection persister instances used to persist collections.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$collectionPersisters</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_collectionPersisters#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;array-key, CollectionPersister&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_collectionUpdates">
$collectionUpdates
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_collectionUpdates" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">232</span>
</aside>
<p class="phpdocumentor-summary">All pending collection updates.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$collectionUpdates</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_collectionUpdates#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;int, PersistentCollection&lt;array-key, object&gt;&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_eagerLoadingEntities">
$eagerLoadingEntities
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_eagerLoadingEntities" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">304</span>
</aside>
<p class="phpdocumentor-summary">Map of Entity Class-Names and corresponding IDs that should eager loaded when requested.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$eagerLoadingEntities</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_eagerLoadingEntities#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;class-string, array&lt;string, mixed&gt;&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_em">
$em
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_em" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">248</span>
</aside>
<p class="phpdocumentor-summary">The EntityManager that &quot;owns&quot; this UnitOfWork instance.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type"><a href="classes/Doctrine-ORM-EntityManagerInterface.html"><abbr title="\Doctrine\ORM\EntityManagerInterface">EntityManagerInterface</abbr></a></span>
<span class="phpdocumentor-signature__name">$em</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_entityChangeSets">
$entityChangeSets
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityChangeSets" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">160</span>
</aside>
<p class="phpdocumentor-summary">Map of entity changes. Keys are object ids (spl_object_id).</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$entityChangeSets</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<section class="phpdocumentor-description"><p>Filled at the beginning of a commit of the UnitOfWork and cleaned at the end.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityChangeSets#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;int, array&lt;string, array{mixed, mixed}&gt;&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_entityDeletions">
$entityDeletions
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityDeletions" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">205</span>
</aside>
<p class="phpdocumentor-summary">A list of all pending entity deletions.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$entityDeletions</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityDeletions#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;int, object&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_entityIdentifiers">
$entityIdentifiers
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityIdentifiers" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">139</span>
</aside>
<p class="phpdocumentor-summary">Map of all identifiers of managed entities.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
<span class="phpdocumentor-signature__name">$entityIdentifiers</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<section class="phpdocumentor-description"><p>Keys are object ids (spl_object_id).</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityIdentifiers#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;int, array&lt;string, mixed&gt;&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_entityInsertions">
$entityInsertions
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityInsertions" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">184</span>
</aside>
<p class="phpdocumentor-summary">A list of all pending entity insertions.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$entityInsertions</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityInsertions#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;int, object&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_entityStates">
$entityStates
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityStates" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">168</span>
</aside>
<p class="phpdocumentor-summary">The (cached) states of any known entities.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$entityStates</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<section class="phpdocumentor-description"><p>Keys are object ids (spl_object_id).</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityStates#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;int, self::STATE_*&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_entityUpdates">
$entityUpdates
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityUpdates" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">191</span>
</aside>
<p class="phpdocumentor-summary">A list of all pending entity updates.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$entityUpdates</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityUpdates#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;int, object&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_evm">
$evm
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_evm" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">269</span>
</aside>
<p class="phpdocumentor-summary">The EventManager used for dispatching events.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type"><a href="classes/Doctrine-Common-EventManager.html"><abbr title="\Doctrine\Common\EventManager">EventManager</abbr></a></span>
<span class="phpdocumentor-signature__name">$evm</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_extraUpdates">
$extraUpdates
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_extraUpdates" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">198</span>
</aside>
<p class="phpdocumentor-summary">Any pending extra updates that have been scheduled by persisters.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$extraUpdates</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_extraUpdates#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;int, array{object, array&lt;string, array{mixed, mixed}&gt;}&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_hydrationCompleteHandler">
$hydrationCompleteHandler
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_hydrationCompleteHandler" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">314</span>
</aside>
<p class="phpdocumentor-summary">Helper for handling completion of hydration</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type"><a href="classes/Doctrine-ORM-Internal-HydrationCompleteHandler.html"><abbr title="\Doctrine\ORM\Internal\HydrationCompleteHandler">HydrationCompleteHandler</abbr></a></span>
<span class="phpdocumentor-signature__name">$hydrationCompleteHandler</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_identifierFlattener">
$identifierFlattener
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_identifierFlattener" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">283</span>
</aside>
<p class="phpdocumentor-summary">The IdentifierFlattener used for manipulating identifiers</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type"><a href="classes/Doctrine-ORM-Utility-IdentifierFlattener.html"><abbr title="\Doctrine\ORM\Utility\IdentifierFlattener">IdentifierFlattener</abbr></a></span>
<span class="phpdocumentor-signature__name">$identifierFlattener</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_identityMap">
$identityMap
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_identityMap" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">130</span>
</aside>
<p class="phpdocumentor-summary">The identity map that holds references to all managed entities that have
an identity. The entities are grouped by their class name.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
<span class="phpdocumentor-signature__name">$identityMap</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<section class="phpdocumentor-description"><p>Since all classes in a hierarchy must share the same identifier set,
we always take the root class name of the hierarchy.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_identityMap#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;class-string, array&lt;string, object&gt;&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_listenersInvoker">
$listenersInvoker
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_listenersInvoker" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">276</span>
</aside>
<p class="phpdocumentor-summary">The ListenersInvoker used for dispatching events.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type"><a href="classes/Doctrine-ORM-Event-ListenersInvoker.html"><abbr title="\Doctrine\ORM\Event\ListenersInvoker">ListenersInvoker</abbr></a></span>
<span class="phpdocumentor-signature__name">$listenersInvoker</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_nonCascadedNewDetectedEntities">
$nonCascadedNewDetectedEntities
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_nonCascadedNewDetectedEntities" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">218</span>
</aside>
<p class="phpdocumentor-summary">New entities that were discovered through relationships that were not
marked as cascade-persist. During flush, this array is populated and
then pruned of any entities that were discovered through a valid
cascade-persist path. (Leftovers cause an error.)</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">array&lt;int, <abbr title="array{: \Doctrine\ORM\AssociationMapping, : object}">AssociationMapping, : object}</abbr>&gt;</span>
<span class="phpdocumentor-signature__name">$nonCascadedNewDetectedEntities</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<section class="phpdocumentor-description"><p>Keys are OIDs, payload is a two-item array describing the association
and the entity.</p>
</section>
<section class="phpdocumentor-description"><p>indexed by respective object spl_object_id()</p>
</section>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_originalEntityData">
$originalEntityData
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_originalEntityData" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">152</span>
</aside>
<p class="phpdocumentor-summary">Map of the original entity data of managed entities.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$originalEntityData</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<section class="phpdocumentor-description"><p>Keys are object ids (spl_object_id). This is used for calculating changesets
at commit time.</p>
<p>Internal note: Note that PHPs &quot;copy-on-write&quot; behavior helps a lot with memory usage.
A value will only really be copied if the value in the entity is modified
by the user.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_originalEntityData#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;int, array&lt;string, mixed&gt;&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_orphanRemovals">
$orphanRemovals
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_orphanRemovals" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">290</span>
</aside>
<p class="phpdocumentor-summary">Orphaned entities that are scheduled for removal.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$orphanRemovals</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_orphanRemovals#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;int, object&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_persisters">
$persisters
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_persisters" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">255</span>
</aside>
<p class="phpdocumentor-summary">The entity persister instances used to persist entity instances.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$persisters</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_persisters#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;string, EntityPersister&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_readOnlyObjects">
$readOnlyObjects
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_readOnlyObjects" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">297</span>
</aside>
<p class="phpdocumentor-summary">Read-Only objects are never evaluated</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">array&lt;int, true&gt;</span>
<span class="phpdocumentor-signature__name">$readOnlyObjects</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_reflectionPropertiesGetter">
$reflectionPropertiesGetter
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_reflectionPropertiesGetter" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">317</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type"><a href="classes/Doctrine-ORM-Mapping-Reflection-ReflectionPropertiesGetter.html"><abbr title="\Doctrine\ORM\Mapping\Reflection\ReflectionPropertiesGetter">ReflectionPropertiesGetter</abbr></a></span>
<span class="phpdocumentor-signature__name">$reflectionPropertiesGetter</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_scheduledForSynchronization">
$scheduledForSynchronization
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_scheduledForSynchronization" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">177</span>
</aside>
<p class="phpdocumentor-summary">Map of entities that are scheduled for dirty checking at commit time.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$scheduledForSynchronization</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<section class="phpdocumentor-description"><p>This is only used for entities with a change tracking policy of DEFERRED_EXPLICIT.
Keys are object ids (spl_object_id).</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_scheduledForSynchronization#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;class-string, array&lt;int, mixed&gt;&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_visitedCollections">
$visitedCollections
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_visitedCollections" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">241</span>
</aside>
<p class="phpdocumentor-summary">List of collections visited during changeset calculation on a commit-phase of a UnitOfWork.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$visitedCollections</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<section class="phpdocumentor-description"><p>At the end of the UnitOfWork all these collections will make new snapshots
of their data.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#property_visitedCollections#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-var</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>array&lt;int, PersistentCollection&lt;array-key, object&gt;&gt;</p>
</section>
</dd>
</dl>
</article>
</section>
<section class="phpdocumentor-methods">
<h3 class="phpdocumentor-elements__header" id="methods">
Methods
<a href="classes/Doctrine-ORM-UnitOfWork.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___construct">
__construct()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method___construct" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">322</span>
</aside>
<p class="phpdocumentor-summary">Initializes a new UnitOfWork instance, bound to the given EntityManager.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-EntityManagerInterface.html"><abbr title="\Doctrine\ORM\EntityManagerInterface">EntityManagerInterface</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$em</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">$em</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-EntityManagerInterface.html"><abbr title="\Doctrine\ORM\EntityManagerInterface">EntityManagerInterface</abbr></a></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_clear">
clear()
<a href="classes/Doctrine-ORM-UnitOfWork.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/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2627</span>
</aside>
<p class="phpdocumentor-summary">Clears the UnitOfWork.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">clear</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$entityName</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">$entityName</span>
: <span class="phpdocumentor-signature__argument__return-type">string|null</span>
= <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>if given, only entities of this type will get detached.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_clear#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">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Doctrine-ORM-ORMInvalidArgumentException.html"><abbr title="\Doctrine\ORM\ORMInvalidArgumentException">ORMInvalidArgumentException</abbr></a></span>
<section class="phpdocumentor-description"><p>if an invalid entity name is given.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_clearEntityChangeSet">
clearEntityChangeSet()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_clearEntityChangeSet" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3350</span>
</aside>
<p class="phpdocumentor-summary">INTERNAL:
Clears the property changeset of the entity with the given OID.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">clearEntityChangeSet</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$oid</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">$oid</span>
: <span class="phpdocumentor-signature__argument__return-type">int</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The entity's OID.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_commit">
commit()
<a href="classes/Doctrine-ORM-UnitOfWork.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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">352</span>
</aside>
<p class="phpdocumentor-summary">Commits the UnitOfWork, executing all operations that have been postponed
up to this point. The state of all managed entities will be synchronized with
the database.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">commit</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">object|array&lt;string|int, mixed&gt;|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$entity</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>
<section class="phpdocumentor-description"><p>The operations are executed in the following order:</p>
<ol>
<li>All entity insertions</li>
<li>All entity updates</li>
<li>All collection deletions</li>
<li>All collection updates</li>
<li>All entity deletions</li>
</ol>
</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">$entity</span>
: <span class="phpdocumentor-signature__argument__return-type">object|array&lt;string|int, mixed&gt;|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-UnitOfWork.html#method_commit#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">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\Exception">Exception</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_computeChangeSets">
computeChangeSets()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_computeChangeSets" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">859</span>
</aside>
<p class="phpdocumentor-summary">Computes all the changes that have been done to entities and collections
since the last commit and stores these changes in the _entityChangeSet map
temporarily for access by the persisters, until the UoW commit is finished.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">computeChangeSets</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_detach">
detach()
<a href="classes/Doctrine-ORM-UnitOfWork.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/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2182</span>
</aside>
<p class="phpdocumentor-summary">Detaches an entity from the persistence management. It&#039;s persistence will
no longer be managed by Doctrine.</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">$entity</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">
<section class="phpdocumentor-description"><p>The entity to detach.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getCollectionPersister">
getCollectionPersister()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getCollectionPersister" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3291</span>
</aside>
<p class="phpdocumentor-summary">Gets a collection persister for a collection-valued association.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getCollectionPersister</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$association</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Persisters-Collection-CollectionPersister.html"><abbr title="\Doctrine\ORM\Persisters\Collection\CollectionPersister">CollectionPersister</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">$association</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getCollectionPersister#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>AssociationMapping $association</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-Persisters-Collection-CollectionPersister.html"><abbr title="\Doctrine\ORM\Persisters\Collection\CollectionPersister">CollectionPersister</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getCommitOrderCalculator">
getCommitOrderCalculator()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getCommitOrderCalculator" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2613</span>
</aside>
<p class="phpdocumentor-summary">Gets the CommitOrderCalculator used by the UnitOfWork to order commits.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getCommitOrderCalculator</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Internal-CommitOrderCalculator.html"><abbr title="\Doctrine\ORM\Internal\CommitOrderCalculator">CommitOrderCalculator</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-Internal-CommitOrderCalculator.html"><abbr title="\Doctrine\ORM\Internal\CommitOrderCalculator">CommitOrderCalculator</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getEntityChangeSet">
getEntityChangeSet()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getEntityChangeSet" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">600</span>
</aside>
<p class="phpdocumentor-summary">Gets the changeset for an entity.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__reference-operator">&amp;</span> <span class="phpdocumentor-signature__name">getEntityChangeSet</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>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, mixed&gt;&gt;</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>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getEntityChangeSet#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>array&lt;string, array{mixed, mixed}|PersistentCollection&gt;</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, mixed&gt;&gt;</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getEntityIdentifier">
getEntityIdentifier()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getEntityIdentifier" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3151</span>
</aside>
<p class="phpdocumentor-summary">Gets the identifier of an entity.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getEntityIdentifier</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>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>The returned value is always an array of identifier values. If the entity
has a composite identifier then the identifier values are in the same
order as the identifier field names as returned by ClassMetadata#getIdentifierFieldNames().</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">$entity</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">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>The identifier values.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getEntityPersister">
getEntityPersister()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getEntityPersister" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3247</span>
</aside>
<p class="phpdocumentor-summary">Gets the EntityPersister for an Entity.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getEntityPersister</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>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Doctrine-ORM-Persisters-Entity-EntityPersister.html"><abbr title="\Doctrine\ORM\Persisters\Entity\EntityPersister">EntityPersister</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">$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.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getEntityPersister#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 $entityName</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-Persisters-Entity-EntityPersister.html"><abbr title="\Doctrine\ORM\Persisters\Entity\EntityPersister">EntityPersister</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getEntityState">
getEntityState()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getEntityState" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1637</span>
</aside>
<p class="phpdocumentor-summary">Gets the state of an entity with regard to the current unit of work.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getEntityState</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">int|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$assume</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">int</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">$assume</span>
: <span class="phpdocumentor-signature__argument__return-type">int|null</span>
= <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The state to assume if the state is not yet known (not MANAGED or REMOVED).
This parameter can be set to improve performance of entity state detection
by potentially avoiding a database lookup if the distinction between NEW and DETACHED
is either known or does not matter for the caller of the method.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getEntityState#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>self::STATE_*|null $assume</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>self::STATE_*</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">int</span>
&mdash;
<section class="phpdocumentor-description"><p>The entity state.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getIdentityMap">
getIdentityMap()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getIdentityMap" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3090</span>
</aside>
<p class="phpdocumentor-summary">Gets the identity map of the UnitOfWork.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getIdentityMap</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-ORM-UnitOfWork.html#method_getIdentityMap#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>array&lt;class-string, array&lt;string, object&gt;&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getIdHashByEntity">
getIdHashByEntity()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getIdHashByEntity" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1611</span>
</aside>
<p class="phpdocumentor-summary">Gets the id hash of an entity.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getIdHashByEntity</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>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</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 managed by Unit Of Work</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
&mdash;
<section class="phpdocumentor-description"><p>The entity id hash.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static -final "
>
<h4 class="phpdocumentor-element__name" id="method_getIdHashByIdentifier">
getIdHashByIdentifier()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getIdHashByIdentifier" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1587</span>
</aside>
<p class="phpdocumentor-summary">Gets the id hash of an entity by its identifier.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__final">final</span> <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">getIdHashByIdentifier</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$identifier</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</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">$identifier</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The identifier of an entity</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
&mdash;
<section class="phpdocumentor-description"><p>The entity id hash.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getOriginalEntityData">
getOriginalEntityData()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getOriginalEntityData" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3104</span>
</aside>
<p class="phpdocumentor-summary">Gets the original data of an entity. The original data is the data that was
present at the time the entity was reconstituted from the database.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getOriginalEntityData</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>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</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>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getOriginalEntityData#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>array&lt;string, mixed&gt;</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getScheduledCollectionDeletions">
getScheduledCollectionDeletions()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getScheduledCollectionDeletions" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3421</span>
</aside>
<p class="phpdocumentor-summary">Gets the currently scheduled complete collection deletions</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getScheduledCollectionDeletions</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-ORM-UnitOfWork.html#method_getScheduledCollectionDeletions#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>array&lt;int, PersistentCollection&lt;array-key, object&gt;&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getScheduledCollectionUpdates">
getScheduledCollectionUpdates()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getScheduledCollectionUpdates" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3431</span>
</aside>
<p class="phpdocumentor-summary">Gets the currently scheduled collection inserts, updates and deletes.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getScheduledCollectionUpdates</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-ORM-UnitOfWork.html#method_getScheduledCollectionUpdates#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>array&lt;int, PersistentCollection&lt;array-key, object&gt;&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getScheduledEntityDeletions">
getScheduledEntityDeletions()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getScheduledEntityDeletions" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3411</span>
</aside>
<p class="phpdocumentor-summary">Gets the currently scheduled entity deletions in this UnitOfWork.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getScheduledEntityDeletions</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-ORM-UnitOfWork.html#method_getScheduledEntityDeletions#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>array&lt;int, object&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getScheduledEntityInsertions">
getScheduledEntityInsertions()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getScheduledEntityInsertions" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3391</span>
</aside>
<p class="phpdocumentor-summary">Gets the currently scheduled entity insertions in this UnitOfWork.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getScheduledEntityInsertions</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-ORM-UnitOfWork.html#method_getScheduledEntityInsertions#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>array&lt;int, object&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getScheduledEntityUpdates">
getScheduledEntityUpdates()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getScheduledEntityUpdates" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3401</span>
</aside>
<p class="phpdocumentor-summary">Gets the currently scheduled entity updates in this UnitOfWork.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getScheduledEntityUpdates</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-ORM-UnitOfWork.html#method_getScheduledEntityUpdates#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>array&lt;int, object&gt;</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getSingleIdentifierValue">
getSingleIdentifierValue()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getSingleIdentifierValue" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3169</span>
</aside>
<p class="phpdocumentor-summary">Processes an entity instance to extract their identifier values.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getSingleIdentifierValue</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>)</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">$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 instance.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getSingleIdentifierValue#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">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Doctrine-ORM-ORMInvalidArgumentException.html"><abbr title="\Doctrine\ORM\ORMInvalidArgumentException">ORMInvalidArgumentException</abbr></a></span>
</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>A scalar value.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_hasPendingInsertions">
hasPendingInsertions()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_hasPendingInsertions" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3223</span>
</aside>
<p class="phpdocumentor-summary">Checks whether the UnitOfWork has any pending insertions.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">hasPendingInsertions</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 this UnitOfWork has pending insertions, FALSE otherwise.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_initializeObject">
initializeObject()
<a href="classes/Doctrine-ORM-UnitOfWork.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/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3443</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>
<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_isCollectionScheduledForDeletion">
isCollectionScheduledForDeletion()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isCollectionScheduledForDeletion" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2714</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isCollectionScheduledForDeletion</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-PersistentCollection.html"><abbr title="\Doctrine\ORM\PersistentCollection">PersistentCollection</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$coll</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">$coll</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-PersistentCollection.html"><abbr title="\Doctrine\ORM\PersistentCollection">PersistentCollection</abbr></a></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
"
>
<h4 class="phpdocumentor-element__name" id="method_isEntityScheduled">
isEntityScheduled()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isEntityScheduled" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1541</span>
</aside>
<p class="phpdocumentor-summary">Checks whether an entity is scheduled for insertion, update or deletion.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isEntityScheduled</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>)</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">$entity</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
"
>
<h4 class="phpdocumentor-element__name" id="method_isInIdentityMap">
isInIdentityMap()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isInIdentityMap" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1787</span>
</aside>
<p class="phpdocumentor-summary">Checks whether an entity is registered in the identity map of this UnitOfWork.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isInIdentityMap</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>)</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">$entity</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
"
>
<h4 class="phpdocumentor-element__name" id="method_isReadOnly">
isReadOnly()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isReadOnly" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3496</span>
</aside>
<p class="phpdocumentor-summary">Is this entity read only?</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isReadOnly</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>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isReadOnly#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">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Doctrine-ORM-ORMInvalidArgumentException.html"><abbr title="\Doctrine\ORM\ORMInvalidArgumentException">ORMInvalidArgumentException</abbr></a></span>
</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
"
>
<h4 class="phpdocumentor-element__name" id="method_isScheduledForDelete">
isScheduledForDelete()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isScheduledForDelete" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1529</span>
</aside>
<p class="phpdocumentor-summary">Checks whether an entity is registered as removed/deleted with the unit
of work.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isScheduledForDelete</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>)</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">$entity</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
"
>
<h4 class="phpdocumentor-element__name" id="method_isScheduledForDirtyCheck">
isScheduledForDirtyCheck()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isScheduledForDirtyCheck" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1478</span>
</aside>
<p class="phpdocumentor-summary">Checks whether an entity is registered to be checked in the unit of work.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isScheduledForDirtyCheck</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>)</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">$entity</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
"
>
<h4 class="phpdocumentor-element__name" id="method_isScheduledForInsert">
isScheduledForInsert()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isScheduledForInsert" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1398</span>
</aside>
<p class="phpdocumentor-summary">Checks whether an entity is scheduled for insertion.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isScheduledForInsert</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>)</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">$entity</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
"
>
<h4 class="phpdocumentor-element__name" id="method_isScheduledForUpdate">
isScheduledForUpdate()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isScheduledForUpdate" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1466</span>
</aside>
<p class="phpdocumentor-summary">Checks whether an entity is registered as dirty in the unit of work.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isScheduledForUpdate</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>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Note: Is not very useful currently as dirty entities are only registered
at commit time.</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">$entity</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
"
>
<h4 class="phpdocumentor-element__name" id="method_loadCollection">
loadCollection()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_loadCollection" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3067</span>
</aside>
<p class="phpdocumentor-summary">Initializes (loads) an uninitialized persistent collection of an entity.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">loadCollection</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-PersistentCollection.html"><abbr title="\Doctrine\ORM\PersistentCollection">PersistentCollection</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$collection</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">$collection</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-PersistentCollection.html"><abbr title="\Doctrine\ORM\PersistentCollection">PersistentCollection</abbr></a></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The collection to initialize.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_loadCollection#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">todo</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>Maybe later move to EntityManager#initialize($proxyOrCollection). See DDC-733.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_lock">
lock()
<a href="classes/Doctrine-ORM-UnitOfWork.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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2556</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-UnitOfWork.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-ORMInvalidArgumentException.html"><abbr title="\Doctrine\ORM\ORMInvalidArgumentException">ORMInvalidArgumentException</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-TransactionRequiredException.html"><abbr title="\Doctrine\ORM\TransactionRequiredException">TransactionRequiredException</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-OptimisticLockException.html"><abbr title="\Doctrine\ORM\OptimisticLockException">OptimisticLockException</abbr></a></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_markReadOnly">
markReadOnly()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_markReadOnly" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3478</span>
</aside>
<p class="phpdocumentor-summary">Marks an entity as read-only so that it will not be considered for updates during UnitOfWork#commit().</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">markReadOnly</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>This operation cannot be undone as some parts of the UnitOfWork now keep gathering information
on this object that might be necessary to perform a correct update.</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">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_markReadOnly#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">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Doctrine-ORM-ORMInvalidArgumentException.html"><abbr title="\Doctrine\ORM\ORMInvalidArgumentException">ORMInvalidArgumentException</abbr></a></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
-deprecated "
>
<h4 class="phpdocumentor-element__name" id="method_merge">
merge()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_merge" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1985</span>
</aside>
<p class="phpdocumentor-summary">Merges the state of the given detached entity into this UnitOfWork.</p>
<code class="phpdocumentor-code phpdocumentor-signature -deprecated">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">merge</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>)</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">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_merge#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"><a href="classes/Doctrine-ORM-OptimisticLockException.html"><abbr title="\Doctrine\ORM\OptimisticLockException">OptimisticLockException</abbr></a></span>
<section class="phpdocumentor-description"><p>If the entity uses optimistic locking through a version
attribute and the version check against the managed copy fails.</p>
</section>
</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 managed copy of the entity.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_persist">
persist()
<a href="classes/Doctrine-ORM-UnitOfWork.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/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1824</span>
</aside>
<p class="phpdocumentor-summary">Persists an entity as part of the current unit of work.</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">$entity</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">
<section class="phpdocumentor-description"><p>The entity to persist.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_propertyChanged">
propertyChanged()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_propertyChanged" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3367</span>
</aside>
<p class="phpdocumentor-summary">Notifies this UnitOfWork of a property change in an entity.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">propertyChanged</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$sender</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">$propertyName</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">$oldValue</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">$newValue</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">$sender</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The entity that owns the property.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$propertyName</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 property that changed.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$oldValue</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The old value of the property.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$newValue</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The new value of the property.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_refresh">
refresh()
<a href="classes/Doctrine-ORM-UnitOfWork.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/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2245</span>
</aside>
<p class="phpdocumentor-summary">Refreshes the state of the given entity from the database, overwriting
any local, unpersisted changes.</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">$entity</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">
<section class="phpdocumentor-description"><p>The entity to refresh</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_refresh#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">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\InvalidArgumentException">InvalidArgumentException</abbr></span>
<section class="phpdocumentor-description"><p>If the entity is not MANAGED.</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-TransactionRequiredException.html"><abbr title="\Doctrine\ORM\TransactionRequiredException">TransactionRequiredException</abbr></a></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_registerManaged">
registerManaged()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_registerManaged" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3327</span>
</aside>
<p class="phpdocumentor-summary">INTERNAL:
Registers an entity as managed.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">registerManaged</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">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$id</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</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">
<section class="phpdocumentor-description"><p>The entity.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$id</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The identifier values.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$data</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The original entity data.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_remove">
remove()
<a href="classes/Doctrine-ORM-UnitOfWork.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/orm/lib/Doctrine/ORM/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1909</span>
</aside>
<p class="phpdocumentor-summary">Deletes an entity as part of the current unit of work.</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">$entity</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">
<section class="phpdocumentor-description"><p>The entity to remove.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_scheduleCollectionDeletion">
scheduleCollectionDeletion()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleCollectionDeletion" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2702</span>
</aside>
<p class="phpdocumentor-summary">INTERNAL:
Schedules a complete collection for removal when this UnitOfWork commits.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">scheduleCollectionDeletion</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-PersistentCollection.html"><abbr title="\Doctrine\ORM\PersistentCollection">PersistentCollection</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$coll</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">$coll</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-PersistentCollection.html"><abbr title="\Doctrine\ORM\PersistentCollection">PersistentCollection</abbr></a></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_scheduleForDelete">
scheduleForDelete()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleForDelete" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1493</span>
</aside>
<p class="phpdocumentor-summary">INTERNAL:
Schedules an entity for deletion.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">scheduleForDelete</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>)</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>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_scheduleForDirtyCheck">
scheduleForDirtyCheck()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleForDirtyCheck" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3211</span>
</aside>
<p class="phpdocumentor-summary">Schedules an entity for dirty-checking at commit-time.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">scheduleForDirtyCheck</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>)</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">
<section class="phpdocumentor-description"><p>The entity to schedule for dirty-checking.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleForDirtyCheck#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">todo</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>Rename: scheduleForSynchronization</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_scheduleForInsert">
scheduleForInsert()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleForInsert" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1360</span>
</aside>
<p class="phpdocumentor-summary">Schedules an entity for insertion into the database.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">scheduleForInsert</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>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>If the entity already has an identifier, it will be added to the identity map.</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">$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 schedule for insertion.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleForInsert#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">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Doctrine-ORM-ORMInvalidArgumentException.html"><abbr title="\Doctrine\ORM\ORMInvalidArgumentException">ORMInvalidArgumentException</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"><abbr title="\InvalidArgumentException">InvalidArgumentException</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_scheduleForUpdate">
scheduleForUpdate()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleForUpdate" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1412</span>
</aside>
<p class="phpdocumentor-summary">Schedules an entity for being updated.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">scheduleForUpdate</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>)</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">
<section class="phpdocumentor-description"><p>The entity to schedule for being updated.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleForUpdate#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">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Doctrine-ORM-ORMInvalidArgumentException.html"><abbr title="\Doctrine\ORM\ORMInvalidArgumentException">ORMInvalidArgumentException</abbr></a></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_size">
size()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_size" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3234</span>
</aside>
<p class="phpdocumentor-summary">Calculates the size of the UnitOfWork. The size of the UnitOfWork is the
number of entities in the identity map.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">size</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">int</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_triggerEagerLoads">
triggerEagerLoads()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_triggerEagerLoads" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3035</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">triggerEagerLoads</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_tryGetById">
tryGetById()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_tryGetById" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3195</span>
</aside>
<p class="phpdocumentor-summary">Tries to find an entity with the given identifier in the identity map of
this UnitOfWork.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">tryGetById</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$id</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">$rootClassName</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">object|false</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">$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 to look for.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$rootClassName</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 root class of the mapped entity hierarchy.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_tryGetById#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 $rootClassName</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">object|false</span>
&mdash;
<section class="phpdocumentor-description"><p>Returns the entity with the specified identifier if it exists in
this UnitOfWork, FALSE otherwise.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_addToEntityIdentifiersAndEntityMap">
addToEntityIdentifiersAndEntityMap()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_addToEntityIdentifiersAndEntityMap" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1185</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">addToEntityIdentifiersAndEntityMap</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$class</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">$oid</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$entity</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">$class</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$oid</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">$entity</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_addToEntityIdentifiersAndEntityMap#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>ClassMetadata&lt;T&gt; $class</p>
</section>
</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>T $entity</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
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_afterTransactionComplete">
afterTransactionComplete()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_afterTransactionComplete" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3508</span>
</aside>
<p class="phpdocumentor-summary">Perform whatever processing is encapsulated here after completion of the transaction.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">afterTransactionComplete</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
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_afterTransactionRolledBack">
afterTransactionRolledBack()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_afterTransactionRolledBack" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3518</span>
</aside>
<p class="phpdocumentor-summary">Perform whatever processing is encapsulated here after completion of the rolled-back.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">afterTransactionRolledBack</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
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_assertThatThereAreNoUnintentionallyNonPersistedAssociations">
assertThatThereAreNoUnintentionallyNonPersistedAssociations()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_assertThatThereAreNoUnintentionallyNonPersistedAssociations" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3583</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">assertThatThereAreNoUnintentionallyNonPersistedAssociations</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-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_assertThatThereAreNoUnintentionallyNonPersistedAssociations#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">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Doctrine-ORM-ORMInvalidArgumentException.html"><abbr title="\Doctrine\ORM\ORMInvalidArgumentException">ORMInvalidArgumentException</abbr></a></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_cascadeDetach">
cascadeDetach()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadeDetach" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2352</span>
</aside>
<p class="phpdocumentor-summary">Cascades a detach operation to associated entities.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">cascadeDetach</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">array&lt;int, object&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$visited</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">$visited</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;int, object&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_cascadeMerge">
cascadeMerge()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadeMerge" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2397</span>
</aside>
<p class="phpdocumentor-summary">Cascades a merge operation to associated entities.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">cascadeMerge</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">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$managedCopy</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$visited</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">$managedCopy</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">$visited</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadeMerge#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>array&lt;int, object&gt; $visited</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_cascadePersist">
cascadePersist()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadePersist" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2436</span>
</aside>
<p class="phpdocumentor-summary">Cascades the save operation to associated entities.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">cascadePersist</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">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$visited</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">$visited</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadePersist#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>array&lt;int, object&gt; $visited</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_cascadeRefresh">
cascadeRefresh()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadeRefresh" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2308</span>
</aside>
<p class="phpdocumentor-summary">Cascades a refresh operation to associated entities.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">cascadeRefresh</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">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$visited</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$lockMode</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">$visited</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</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|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-UnitOfWork.html#method_cascadeRefresh#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>array&lt;int, object&gt; $visited</p>
</section>
</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>LockMode::*|null $lockMode</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_cascadeRemove">
cascadeRemove()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadeRemove" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2501</span>
</aside>
<p class="phpdocumentor-summary">Cascades the delete operation to associated entities.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">cascadeRemove</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">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$visited</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">$visited</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadeRemove#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>array&lt;int, object&gt; $visited</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_clearEntityInsertionsForEntityName">
clearEntityInsertionsForEntityName()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_clearEntityInsertionsForEntityName" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3731</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">clearEntityInsertionsForEntityName</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>)</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">$entityName</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_clearIdentityMapForEntityName">
clearIdentityMapForEntityName()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_clearIdentityMapForEntityName" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3718</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">clearIdentityMapForEntityName</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>)</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">$entityName</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_computeAssociationChanges">
computeAssociationChanges()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_computeAssociationChanges" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">913</span>
</aside>
<p class="phpdocumentor-summary">Computes the changes of an association.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">computeAssociationChanges</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$assoc</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">$value</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">$assoc</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$value</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The value of the association.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_computeAssociationChanges#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>AssociationMapping $assoc The association mapping.</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-ORMInvalidArgumentException.html"><abbr title="\Doctrine\ORM\ORMInvalidArgumentException">ORMInvalidArgumentException</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-Exception-ORMException.html"><abbr title="\Doctrine\ORM\Exception\ORMException">ORMException</abbr></a></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_computeScheduleInsertsChangeSets">
computeScheduleInsertsChangeSets()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_computeScheduleInsertsChangeSets" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">522</span>
</aside>
<p class="phpdocumentor-summary">Computes the changesets of all entities scheduled for insertion.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">computeScheduleInsertsChangeSets</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
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_computeSingleEntityChangeSet">
computeSingleEntityChangeSet()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_computeSingleEntityChangeSet" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">543</span>
</aside>
<p class="phpdocumentor-summary">Only flushes the given entity according to a ruleset that keeps the UoW consistent.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">computeSingleEntityChangeSet</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>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><ol>
<li>All entities scheduled for insertion, (orphan) removals and changes in collections are processed as well!</li>
<li>Read Only entities are skipped.</li>
<li>Proxies are skipped.</li>
<li>Only if entity is properly managed.</li>
</ol>
</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">$entity</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_computeSingleEntityChangeSet#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">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\InvalidArgumentException">InvalidArgumentException</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_convertSingleFieldIdentifierToPHPValue">
convertSingleFieldIdentifierToPHPValue()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_convertSingleFieldIdentifierToPHPValue" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3748</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">convertSingleFieldIdentifierToPHPValue</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$class</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">$identifierValue</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">$class</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$identifierValue</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-UnitOfWork.html#method_convertSingleFieldIdentifierToPHPValue#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">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Doctrine-ORM-Mapping-MappingException.html"><abbr title="\Doctrine\ORM\Mapping\MappingException">MappingException</abbr></a></span>
<section class="phpdocumentor-description"><p>if the entity has more than a single identifier.</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 identifier after type conversion</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_dispatchOnFlushEvent">
dispatchOnFlushEvent()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_dispatchOnFlushEvent" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3541</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">dispatchOnFlushEvent</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
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_dispatchPostFlushEvent">
dispatchPostFlushEvent()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_dispatchPostFlushEvent" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3548</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">dispatchPostFlushEvent</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
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_doDetach">
doDetach()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_doDetach" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2196</span>
</aside>
<p class="phpdocumentor-summary">Executes a detach operation on the given entity.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">doDetach</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">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$visited</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">$noCascade</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">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">$visited</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$noCascade</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>if true, don't cascade detach operation.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_doMerge">
doMerge()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_doMerge" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2006</span>
</aside>
<p class="phpdocumentor-summary">Executes a merge operation on an entity.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">doMerge</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">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$visited</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$prevManagedCopy</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$assoc</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">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">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$visited</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$prevManagedCopy</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
= <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$assoc</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;|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-UnitOfWork.html#method_doMerge#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>AssociationMapping|null $assoc</p>
</section>
</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>array&lt;int, object&gt; $visited</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>
<section class="phpdocumentor-description"><p>If the entity uses optimistic locking through a version
attribute and the version check against the managed copy fails.</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-ORMInvalidArgumentException.html"><abbr title="\Doctrine\ORM\ORMInvalidArgumentException">ORMInvalidArgumentException</abbr></a></span>
<section class="phpdocumentor-description"><p>If the entity instance is NEW.</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-EntityNotFoundException.html"><abbr title="\Doctrine\ORM\EntityNotFoundException">EntityNotFoundException</abbr></a></span>
<section class="phpdocumentor-description"><p>if an assigned identifier is used in the entity, but none is provided.</p>
</section>
</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 managed copy of the entity.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_doPersist">
doPersist()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_doPersist" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1843</span>
</aside>
<p class="phpdocumentor-summary">Persists an entity as part of the current unit of work.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">doPersist</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">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$visited</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 internally called during persist() cascades as it tracks
the already visited entities to prevent infinite recursions.</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">$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 persist.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$visited</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_doPersist#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>array&lt;int, object&gt; $visited The already visited entities.</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-ORMInvalidArgumentException.html"><abbr title="\Doctrine\ORM\ORMInvalidArgumentException">ORMInvalidArgumentException</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"><abbr title="\UnexpectedValueException">UnexpectedValueException</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_doRefresh">
doRefresh()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_doRefresh" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2268</span>
</aside>
<p class="phpdocumentor-summary">Executes a refresh operation on an entity.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">doRefresh</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">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$visited</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$lockMode</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">
<section class="phpdocumentor-description"><p>The entity to refresh.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$visited</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</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|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-UnitOfWork.html#method_doRefresh#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>array&lt;int, object&gt; $visited The already visited entities during cascades.</p>
</section>
</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>LockMode::*|null $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-ORMInvalidArgumentException.html"><abbr title="\Doctrine\ORM\ORMInvalidArgumentException">ORMInvalidArgumentException</abbr></a></span>
<section class="phpdocumentor-description"><p>If the entity is not MANAGED.</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-TransactionRequiredException.html"><abbr title="\Doctrine\ORM\TransactionRequiredException">TransactionRequiredException</abbr></a></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_doRemove">
doRemove()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_doRemove" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1928</span>
</aside>
<p class="phpdocumentor-summary">Deletes an entity as part of the current unit of work.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">doRemove</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">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$visited</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 internally called during delete() cascades as it tracks
the already visited entities to prevent infinite recursions.</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">$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 delete.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$visited</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_doRemove#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>array&lt;int, object&gt; $visited The map of the already visited entities.</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-ORMInvalidArgumentException.html"><abbr title="\Doctrine\ORM\ORMInvalidArgumentException">ORMInvalidArgumentException</abbr></a></span>
<section class="phpdocumentor-description"><p>If the instance is a detached entity.</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="\UnexpectedValueException">UnexpectedValueException</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_ensureVersionMatch">
ensureVersionMatch()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_ensureVersionMatch" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2110</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">ensureVersionMatch</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$class</span></span><span class="phpdocumentor-signature__argument"><span>, </span><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">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$managedCopy</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">$class</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<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">$managedCopy</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_ensureVersionMatch#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>ClassMetadata&lt;T&gt; $class</p>
</section>
</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>T $entity</p>
</section>
</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>T $managedCopy</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">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
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_executeDeletions">
executeDeletions()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_executeDeletions" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1247</span>
</aside>
<p class="phpdocumentor-summary">Executes all entity deletions for entities of the specified type.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">executeDeletions</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$class</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">$class</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_executeExtraUpdates">
executeExtraUpdates()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_executeExtraUpdates" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">580</span>
</aside>
<p class="phpdocumentor-summary">Executes any extra updates that have been scheduled.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">executeExtraUpdates</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
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_executeInserts">
executeInserts()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_executeInserts" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1119</span>
</aside>
<p class="phpdocumentor-summary">Executes all entity insertions for entities of the specified type.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">executeInserts</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$class</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">$class</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_executeUpdates">
executeUpdates()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_executeUpdates" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1214</span>
</aside>
<p class="phpdocumentor-summary">Executes all entity updates for entities of the specified type.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">executeUpdates</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$class</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">$class</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_getCommitOrder">
getCommitOrder()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_getCommitOrder" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1285</span>
</aside>
<p class="phpdocumentor-summary">Gets the commit order.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">getCommitOrder</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;int, <a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a>&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;int, <a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a>&gt;</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_hasMissingIdsWhichAreForeignKeys">
hasMissingIdsWhichAreForeignKeys()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_hasMissingIdsWhichAreForeignKeys" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1028</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">hasMissingIdsWhichAreForeignKeys</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$class</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$idValue</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">$class</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$idValue</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</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
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_isIdentifierEquals">
isIdentifierEquals()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isIdentifierEquals" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3561</span>
</aside>
<p class="phpdocumentor-summary">Verifies if two given entities actually are the same based on identifier comparison</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">isIdentifierEquals</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$entity1</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$entity2</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">$entity1</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">$entity2</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
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_isLoaded">
isLoaded()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_isLoaded" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2138</span>
</aside>
<p class="phpdocumentor-summary">Tests if an entity is loaded - must either be a loaded proxy or not a proxy</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">isLoaded</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>)</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">$entity</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
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_mergeEntityStateIntoManagedCopy">
mergeEntityStateIntoManagedCopy()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_mergeEntityStateIntoManagedCopy" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3604</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">mergeEntityStateIntoManagedCopy</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">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$managedCopy</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">$managedCopy</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_mergeEntityStateIntoManagedCopy#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">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">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-TransactionRequiredException.html"><abbr title="\Doctrine\ORM\TransactionRequiredException">TransactionRequiredException</abbr></a></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_newInstance">
newInstance()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_newInstance" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2720</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">newInstance</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$class</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">$class</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a></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">object</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_normalizeIdentifier">
normalizeIdentifier()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_normalizeIdentifier" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3764</span>
</aside>
<p class="phpdocumentor-summary">Given a flat identifier, this method will produce another flat identifier, but with all
association fields that are mapped as identifiers replaced by entity references, recursively.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">normalizeIdentifier</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$targetClass</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$flatIdentifier</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string, mixed&gt;</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">$targetClass</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$flatIdentifier</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</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">array&lt;string, mixed&gt;</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
-static "
>
<h4 class="phpdocumentor-element__name" id="method_objToStr">
objToStr()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_objToStr" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3461</span>
</aside>
<p class="phpdocumentor-summary">Helper method to show an object as string.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">objToStr</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">string</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">$obj</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">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_performCallbackOnCachedPersister">
performCallbackOnCachedPersister()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_performCallbackOnCachedPersister" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3528</span>
</aside>
<p class="phpdocumentor-summary">Performs an action after the transaction.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">performCallbackOnCachedPersister</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">callable&nbsp;</span><span class="phpdocumentor-signature__argument__name">$callback</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">$callback</span>
: <span class="phpdocumentor-signature__argument__return-type">callable</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_persistNew">
persistNew()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_persistNew" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">995</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">persistNew</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$class</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$entity</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">$class</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/Doctrine-ORM-Mapping-ClassMetadata.html"><abbr title="\Doctrine\ORM\Mapping\ClassMetadata">ClassMetadata</abbr></a></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<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>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_persistNew#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>ClassMetadata&lt;T&gt; $class</p>
</section>
</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>T $entity</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
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_postCommitCleanup">
postCommitCleanup()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_postCommitCleanup" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">488</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">postCommitCleanup</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">object|array&lt;string|int, object&gt;|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$entity</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|array&lt;string|int, object&gt;|null</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_updateAssociationWithMergedEntity">
updateAssociationWithMergedEntity()
<a href="classes/Doctrine-ORM-UnitOfWork.html#method_updateAssociationWithMergedEntity" 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/UnitOfWork.php"><a href="files/vendor-doctrine-orm-lib-doctrine-orm-unitofwork.html"><abbr title="vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php">UnitOfWork.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2149</span>
</aside>
<p class="phpdocumentor-summary">Sets/adds associated managed copies into the previous entity&#039;s association field</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">updateAssociationWithMergedEntity</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">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$association</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">$previousManagedCopy</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">$managedCopy</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">$association</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$previousManagedCopy</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$managedCopy</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-UnitOfWork.html#method_updateAssociationWithMergedEntity#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>AssociationMapping $association</p>
</section>
</dd>
</dl>
</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/UnitOfWork.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-UnitOfWork.html#toc-constants">Constants</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#toc-properties">Properties</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#toc-methods">Methods</a></li>
</ul>
</li>
<li class="phpdocumentor-on-this-page-section__title">Constants</li>
<li>
<ul class="phpdocumentor-list -clean">
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#constant_HINT_DEFEREAGERLOAD">HINT_DEFEREAGERLOAD</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#constant_STATE_DETACHED">STATE_DETACHED</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#constant_STATE_MANAGED">STATE_MANAGED</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#constant_STATE_NEW">STATE_NEW</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#constant_STATE_REMOVED">STATE_REMOVED</a></li>
</ul>
</li>
<li class="phpdocumentor-on-this-page-section__title">Properties</li>
<li>
<ul class="phpdocumentor-list -clean">
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_hasCache">$hasCache<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_collectionDeletions">$collectionDeletions<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_collectionPersisters">$collectionPersisters<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_collectionUpdates">$collectionUpdates<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_eagerLoadingEntities">$eagerLoadingEntities<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_em">$em<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityChangeSets">$entityChangeSets<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityDeletions">$entityDeletions<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityIdentifiers">$entityIdentifiers<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityInsertions">$entityInsertions<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityStates">$entityStates<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_entityUpdates">$entityUpdates<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_evm">$evm<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_extraUpdates">$extraUpdates<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_hydrationCompleteHandler">$hydrationCompleteHandler<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_identifierFlattener">$identifierFlattener<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_identityMap">$identityMap<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_listenersInvoker">$listenersInvoker<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_nonCascadedNewDetectedEntities">$nonCascadedNewDetectedEntities<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_originalEntityData">$originalEntityData<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_orphanRemovals">$orphanRemovals<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_persisters">$persisters<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_readOnlyObjects">$readOnlyObjects<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_reflectionPropertiesGetter">$reflectionPropertiesGetter<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_scheduledForSynchronization">$scheduledForSynchronization<a href="classes/Doctrine-ORM-UnitOfWork.html"></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#property_visitedCollections">$visitedCollections<a href="classes/Doctrine-ORM-UnitOfWork.html"></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-UnitOfWork.html#method___construct">__construct()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_clear">clear()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_clearEntityChangeSet">clearEntityChangeSet()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_commit">commit()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_computeChangeSets">computeChangeSets()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_detach">detach()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getCollectionPersister">getCollectionPersister()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getCommitOrderCalculator">getCommitOrderCalculator()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getEntityChangeSet">getEntityChangeSet()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getEntityIdentifier">getEntityIdentifier()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getEntityPersister">getEntityPersister()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getEntityState">getEntityState()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getIdentityMap">getIdentityMap()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getIdHashByEntity">getIdHashByEntity()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getIdHashByIdentifier">getIdHashByIdentifier()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getOriginalEntityData">getOriginalEntityData()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getScheduledCollectionDeletions">getScheduledCollectionDeletions()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getScheduledCollectionUpdates">getScheduledCollectionUpdates()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getScheduledEntityDeletions">getScheduledEntityDeletions()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getScheduledEntityInsertions">getScheduledEntityInsertions()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getScheduledEntityUpdates">getScheduledEntityUpdates()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getSingleIdentifierValue">getSingleIdentifierValue()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_hasPendingInsertions">hasPendingInsertions()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_initializeObject">initializeObject()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_isCollectionScheduledForDeletion">isCollectionScheduledForDeletion()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_isEntityScheduled">isEntityScheduled()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_isInIdentityMap">isInIdentityMap()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_isReadOnly">isReadOnly()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_isScheduledForDelete">isScheduledForDelete()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_isScheduledForDirtyCheck">isScheduledForDirtyCheck()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_isScheduledForInsert">isScheduledForInsert()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_isScheduledForUpdate">isScheduledForUpdate()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_loadCollection">loadCollection()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_lock">lock()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_markReadOnly">markReadOnly()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_merge">merge()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_persist">persist()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_propertyChanged">propertyChanged()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_refresh">refresh()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_registerManaged">registerManaged()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_remove">remove()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleCollectionDeletion">scheduleCollectionDeletion()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleForDelete">scheduleForDelete()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleForDirtyCheck">scheduleForDirtyCheck()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleForInsert">scheduleForInsert()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_scheduleForUpdate">scheduleForUpdate()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_size">size()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_triggerEagerLoads">triggerEagerLoads()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_tryGetById">tryGetById()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_addToEntityIdentifiersAndEntityMap">addToEntityIdentifiersAndEntityMap()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_afterTransactionComplete">afterTransactionComplete()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_afterTransactionRolledBack">afterTransactionRolledBack()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_assertThatThereAreNoUnintentionallyNonPersistedAssociations">assertThatThereAreNoUnintentionallyNonPersistedAssociations()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadeDetach">cascadeDetach()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadeMerge">cascadeMerge()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadePersist">cascadePersist()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadeRefresh">cascadeRefresh()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_cascadeRemove">cascadeRemove()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_clearEntityInsertionsForEntityName">clearEntityInsertionsForEntityName()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_clearIdentityMapForEntityName">clearIdentityMapForEntityName()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_computeAssociationChanges">computeAssociationChanges()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_computeScheduleInsertsChangeSets">computeScheduleInsertsChangeSets()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_computeSingleEntityChangeSet">computeSingleEntityChangeSet()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_convertSingleFieldIdentifierToPHPValue">convertSingleFieldIdentifierToPHPValue()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_dispatchOnFlushEvent">dispatchOnFlushEvent()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_dispatchPostFlushEvent">dispatchPostFlushEvent()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_doDetach">doDetach()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_doMerge">doMerge()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_doPersist">doPersist()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_doRefresh">doRefresh()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_doRemove">doRemove()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_ensureVersionMatch">ensureVersionMatch()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_executeDeletions">executeDeletions()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_executeExtraUpdates">executeExtraUpdates()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_executeInserts">executeInserts()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_executeUpdates">executeUpdates()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_getCommitOrder">getCommitOrder()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_hasMissingIdsWhichAreForeignKeys">hasMissingIdsWhichAreForeignKeys()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_isIdentifierEquals">isIdentifierEquals()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_isLoaded">isLoaded()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_mergeEntityStateIntoManagedCopy">mergeEntityStateIntoManagedCopy()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_newInstance">newInstance()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_normalizeIdentifier">normalizeIdentifier()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_objToStr">objToStr()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_performCallbackOnCachedPersister">performCallbackOnCachedPersister()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_persistNew">persistNew()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_postCommitCleanup">postCommitCleanup()</a></li>
<li><a href="classes/Doctrine-ORM-UnitOfWork.html#method_updateAssociationWithMergedEntity">updateAssociationWithMergedEntity()</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-UnitOfWork.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>