Doctrine\OrientDB\Query\Query::revoke PHP Method

revoke() public method

Converts the query into an REVOKE with the given $permission.
public revoke ( string $permission ) : Revoke
$permission string
return Doctrine\OrientDB\Query\Command\Credential\Revoke
    public function revoke($permission)
    {
        $commandClass = $this->getCommandClass('revoke');
        $this->command = new $commandClass($permission);
        return $this->command;
    }

Usage Example

コード例 #1
0
 public function testRevokeCredentials()
 {
     $query = new Query();
     $query->revoke('READ')->to('reader')->on('Address');
     $this->assertHttpStatus(200, $this->doQuery($query));
 }