protected function getInsertAccessControlEntrySql($classId, $objectIdentityId, $field, $aceOrder, $securityIdentityId, $strategy, $mask, $granting, $auditSuccess, $auditFailure)
    {
        $query = <<<QUERY
            INSERT INTO %s (
                class_id,
                object_identity_id,
                field_name,
                ace_order,
                security_identity_id,
                mask,
                granting,
                granting_strategy,
                audit_success,
                audit_failure
            )
            VALUES (%d, %s, %s, %d, %d, %d, %s, %s, %s, %s)
QUERY;

        return sprintf(
            $query,
            $this->options['entry_table_name'],
            $classId,
            null === $objectIdentityId ? 'NULL' : (int) $objectIdentityId,
            null === $field ? 'NULL' : $this->connection->quote($field),
            $aceOrder,
            $securityIdentityId,
            $mask,
            $this->connection->getDatabasePlatform()->convertBooleans($granting),
            $this->connection->quote($strategy),
            $this->connection->getDatabasePlatform()->convertBooleans($auditSuccess),
            $this->connection->getDatabasePlatform()->convertBooleans($auditFailure)
        );
    }
protected function getInsertAccessControlEntrySql($classId, $objectIdentityId, $field, $aceOrder, $securityIdentityId, $strategy, $mask, $granting, $auditSuccess, $auditFailure)
    {
        $query = <<<QUERY
            INSERT INTO %s (
                class_id,
                object_identity_id,
                field_name,
                ace_order,
                security_identity_id,
                mask,
                granting,
                granting_strategy,
                audit_success,
                audit_failure
            )
            VALUES (%d, %s, %s, %d, %d, %d, %s, %s, %s, %s)
QUERY;

        return sprintf(
            $query,
            $this->options['entry_table_name'],
            $classId,
            null === $objectIdentityId ? 'NULL' : (int) $objectIdentityId,
            null === $field ? 'NULL' : $this->connection->quote($field),
            $aceOrder,
            $securityIdentityId,
            $mask,
            $this->connection->getDatabasePlatform()->convertBooleans($granting),
            $this->connection->quote($strategy),
            $this->connection->getDatabasePlatform()->convertBooleans($auditSuccess),
            $this->connection->getDatabasePlatform()->convertBooleans($auditFailure)
        );
    }
protected function getInsertAccessControlEntrySql ( $ classId , $ objectIdentityId , $ field , $ aceOrder , $ securityIdentityId , $ strategy , $ mask , $ granting , $ auditSuccess , $ auditFailure ) { $ query =  <<<QUERY
            INSERT INTO %s (
                class_id,
                object_identity_id,
                field_name,
                ace_order,
                security_identity_id,
                mask,
                granting,
                granting_strategy,
                audit_success,
                audit_failure
            )
            VALUES (%d, %s, %s, %d, %d, %d, %s, %s, %s, %s)
QUERY ; return sprintf ( $ query , $ this -> options [ 'entry_table_name' ] , $ classId , null === $ objectIdentityId ? 'NULL' : ( int ) $ objectIdentityId , null === $ field ? 'NULL' : $ this -> connection -> quote ( $ field ) , $ aceOrder , $ securityIdentityId , $ mask , $ this -> connection -> getDatabasePlatform ( ) -> convertBooleans ( $ granting ) , $ this -> connection -> quote ( $ strategy ) , $ this -> connection -> getDatabasePlatform ( ) -> convertBooleans ( $ auditSuccess ) , $ this -> connection -> getDatabasePlatform ( ) -> convertBooleans ( $ auditFailure ) ) ; }
Constructs the SQL for inserting an ACE.

@param int         $classId
@param int|null    $objectIdentityId
@param string|null $field
@param int         $aceOrder
@param int         $securityIdentityId
@param string      $strategy
@param int         $mask
@param bool        $granting
@param bool        $auditSuccess
@param bool        $auditFailure

@return string
Constructs the SQL for inserting an ACE .