public function dropUniqueConstraint($label, $property)
    {
        $statements = [];
        $identifier = strtolower($label);
        if (is_array($property)) {
            foreach ($property as $prop) {
                $statements[] = 'DROP CONSTRAINT ON ('.$identifier.':'.$label.') ASSERT '.$identifier.'.'.$prop.' IS UNIQUE';
            }
        } else {
            $statements[] = 'DROP CONSTRAINT ON ('.$identifier.':'.$label.') ASSERT '.$identifier.'.'.$property.' IS UNIQUE';
        }
        foreach ($statements as $statement) {
            $this->sendCypherQuery($statement);
        }

        return true;
    }
public function dropUniqueConstraint($label, $property)
    {
        $statements = [];
        $identifier = strtolower($label);
        if (is_array($property)) {
            foreach ($property as $prop) {
                $statements[] = 'DROP CONSTRAINT ON ('.$identifier.':'.$label.') ASSERT '.$identifier.'.'.$prop.' IS UNIQUE';
            }
        } else {
            $statements[] = 'DROP CONSTRAINT ON ('.$identifier.':'.$label.') ASSERT '.$identifier.'.'.$property.' IS UNIQUE';
        }
        foreach ($statements as $statement) {
            $this->sendCypherQuery($statement);
        }

        return true;
    }
public function dropUniqueConstraint ( $ label , $ property ) { $ statements = [ ] ; $ identifier = strtolower ( $ label ) ; if ( is_array ( $ property ) ) { foreach ( $ property as $ prop ) { $ statements [ ] = 'DROP CONSTRAINT ON (' . $ identifier . ':' . $ label . ') ASSERT ' . $ identifier . '.' . $ prop . ' IS UNIQUE' ; } } else { $ statements [ ] = 'DROP CONSTRAINT ON (' . $ identifier . ':' . $ label . ') ASSERT ' . $ identifier . '.' . $ property . ' IS UNIQUE' ; } foreach ( $ statements as $ statement ) { $ this -> sendCypherQuery ( $ statement ) ; } return true ; }
Drops a unique constraint on a label.

@param string       $label
@param string|array $property

@return bool
Drops a unique constraint on a label .