private function errorIfClosed() { if ($this->closed) { throw ORMException::entityManagerClosed(); } }