Doctrine\ODM\CouchDB\Mapping\MappingException::invalidInheritanceRoot PHP Method

invalidInheritanceRoot() public static method

public static invalidInheritanceRoot ( $className, $parents )
    public static function invalidInheritanceRoot($className, $parents)
    {
        return new self("Class '" . $className . "' cannot be the root of an inheritance hierachy, because it has " . "parent classes: " . implode(", ", $parents));
    }

Usage Example

Exemplo n.º 1
0
 public function markInheritanceRoot()
 {
     if ($this->parentClasses) {
         throw MappingException::invalidInheritanceRoot($this->name, $this->parentClasses);
     }
     $this->inInheritanceHierachy = true;
 }