Initialize Doctrine Metadata for this class.
void
\RuntimeException
private function initializeDoctrine() {
if ($this->cm !== null) {
return;
}
if (!self::$objectManager) {
throw new \RuntimeException("No runtime object manager set. Call PersistentObject#setObjectManager().");
}
$this->cm = self::$objectManager
->getClassMetadata(get_class($this));
}