eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway::reparent PHP Method

reparent() abstract public method

Update includes history entries.
abstract public reparent ( mixed $oldParentId, mixed $newParentId )
$oldParentId mixed
$newParentId mixed
    public abstract function reparent($oldParentId, $newParentId);

Usage Example

 /**
  * Updates parent id of autogenerated entries.
  *
  * Update includes history entries.
  *
  * @param mixed $oldParentId
  * @param mixed $newParentId
  */
 public function reparent($oldParentId, $newParentId)
 {
     try {
         $this->innerGateway->reparent($oldParentId, $newParentId);
     } catch (DBALException $e) {
         throw new \RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new \RuntimeException('Database error', 0, $e);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway::reparent