Doctrine


Doctrine\DBAL\Schema\Index
/Doctrine/DBAL/Schema/Index.php at line 26

Class Index

Class:Index - Superclass: AbstractAsset
AbstractAsset
⌊ Index
All Implemented Interfaces:
Constraint

public class Index
extends AbstractAsset

The abstract asset allows to reset the name of all assets without publishing this to the public userland.

This encapsulation hack is necessary to keep a consistent state of the database schema. Say we have a list of tables array($tableName => Table($tableName)); if you want to rename the table, you have to make sure

License:
http://www.opensource.org/licenses/lgpl-license.php LGPL
See Also:
www.doctrine-project.org
Since:
2.0
Version:
$Revision$
Author:
Benjamin Eberlei

Field Summary
protected array

$_columns

protected bool

$_isPrimary

protected bool

$_isUnique

Fields inherited from Doctrine\DBAL\Schema\AbstractAsset
_name
Constructor Summary

Index(string indexName, mixed columns, bool isUnique, bool isPrimary, array column)

Method Summary
array

getColumns()

bool

hasColumnAtPosition(string columnName, int pos)

bool

isPrimary()

bool

isUnique()

Methods inherited from Doctrine\DBAL\Schema\AbstractAsset
getName

Field Detail

/Doctrine/DBAL/Schema/Index.php at line 31

_columns

protected array $_columns


/Doctrine/DBAL/Schema/Index.php at line 41

_isPrimary

protected bool $_isPrimary = false


/Doctrine/DBAL/Schema/Index.php at line 36

_isUnique

protected bool $_isUnique = false


Constructor Detail

/Doctrine/DBAL/Schema/Index.php at line 49

Index

public Index(string indexName, mixed columns, bool isUnique, bool isPrimary, array column)


Method Detail

/Doctrine/DBAL/Schema/Index.php at line 77

getColumns

public array getColumns()


/Doctrine/DBAL/Schema/Index.php at line 103

hasColumnAtPosition

public bool hasColumnAtPosition(string columnName, int pos)


/Doctrine/DBAL/Schema/Index.php at line 93

isPrimary

public bool isPrimary()


/Doctrine/DBAL/Schema/Index.php at line 85

isUnique

public bool isUnique()


Doctrine