Doctrine\ODM\OrientDB\Types\Rid::getValue PHP Method

getValue() public method

Returns the rid associated with the current object.
public getValue ( ) : string
return string
    public function getValue()
    {
        return $this->rid;
    }

Usage Example

Example #1
0
 /**
  * Tries to identify the class of an rid by matching it against
  * the clusters in the database
  *
  * @param Rid $rid
  *
  * @throws MappingException
  * @return string
  */
 public function identifyClass(Rid $rid)
 {
     $map = $this->getMap();
     $splitRid = explode(':', ltrim($rid->getValue(), '#'));
     $clusterId = $splitRid[0];
     foreach ($map as $class => $clusters) {
         if (in_array($clusterId, $clusters)) {
             return $class;
         }
     }
     throw MappingException::noClusterForRid($rid);
 }
All Usage Examples Of Doctrine\ODM\OrientDB\Types\Rid::getValue