isTransient() public method

This is only the case if it is either mapped as an XmlEntity
public isTransient ( string $className ) : boolean
$className string
return boolean
Exemplo n.º 1
0
 /**
  * Get array of parent classes for the given entity class
  *
  * @param string $name
  * @return array $parentClasses
  */
 protected function getParentClasses($name)
 {
     // Collect parent classes, ignoring transient (not-mapped) classes.
     $parentClasses = array();
     foreach (array_reverse(class_parents($name)) as $parentClass) {
         if (!$this->driver->isTransient($parentClass)) {
             $parentClasses[] = $parentClass;
         }
     }
     return $parentClasses;
 }
Exemplo n.º 2
0
 /**
  * @param string $className
  * @return boolean
  */
 public function isTransient($className)
 {
     return $this->driver->isTransient($className);
 }