lib/Doctrine/ORM/PersistentObject.php
private function initializeDoctrine()
    {
        if ($this->cm !== null) {
            return;
        }

        if (! self::$entityManager) {
            throw new RuntimeException('No runtime entity manager set. Call PersistentObject#setEntityManager().');
        }

        $this->cm = self::$entityManager->getClassMetadata(static::class);
    }
private function initializeDoctrine()
    {
        if ($this->cm !== null) {
            return;
        }

        if (! self::$entityManager) {
            throw new RuntimeException('No runtime entity manager set. Call PersistentObject#setEntityManager().');
        }

        $this->cm = self::$entityManager->getClassMetadata(static::class);
    }
private function initializeDoctrine ( ) { if ( $ this -> cm !== null ) { return ; } if ( ! self :: $ entityManager ) { throw new RuntimeException ( 'No runtime entity manager set. Call PersistentObject#setEntityManager().' ) ; } $ this -> cm = self :: $ entityManager -> getClassMetadata ( static :: class ) ; }
Initializes Doctrine Metadata for this class.

@throws RuntimeException
Initializes Doctrine Metadata for this class .