_foreignKeyData example


        return $this->_indexData($this->protectIdentifiers($table, true, false, false));
    }

    /** * Returns an object with foreign key data * * @return array */
    public function getForeignKeyData(string $table)
    {
        return $this->_foreignKeyData($this->protectIdentifiers($table, true, false, false));
    }

    /** * Converts array of arrays generated by _foreignKeyData() to array of objects * * @return array[ * {constraint_name} => * stdClass[ * 'constraint_name' => string, * 'table_name' => string, * 'column_name' => string[], * 'foreign_table_name' => string, * 'foreign_column_name' => string[], * 'on_delete' => string, * 'on_update' => string, * 'match' => string * ] * ] */
Home | Imprint | This part of the site doesn't use cookies.