PHP Class PartKeepr\CoreBundle\DoctrineMigrations\Version20150708120022

Inheritance: extends BaseMigration
Datei anzeigen Open project: partkeepr/PartKeepr

Public Methods

Method Description
down ( Doctrine\DBAL\Schema\Schema $schema )
fetchParent ( $table, $id ) : mixed Fetches the parent node for a table and ID.
fixTree ( string $table ) Fixes the tree for a given table due to the migration of doctrine2-nestedset to DoctrineExtensions.
getLevel ( $table, $id ) : mixed Returns the level for a given table and ID.
getNodeIds ( $table ) : array Returns the node IDs for the table.
up ( Doctrine\DBAL\Schema\Schema $schema )

Protected Methods

Method Description
createRootNode ( $service )

Method Details

createRootNode() protected method

protected createRootNode ( $service )

down() public method

public down ( Doctrine\DBAL\Schema\Schema $schema )
$schema Doctrine\DBAL\Schema\Schema

fetchParent() public method

Fetches the parent node for a table and ID.
public fetchParent ( $table, $id ) : mixed
$table
$id
return mixed

fixTree() public method

Fixes the tree for a given table due to the migration of doctrine2-nestedset to DoctrineExtensions.
public fixTree ( string $table )
$table string The table name to fix

getLevel() public method

Returns the level for a given table and ID.
public getLevel ( $table, $id ) : mixed
$table
$id
return mixed

getNodeIds() public method

Returns the node IDs for the table.
public getNodeIds ( $table ) : array
$table
return array

up() public method

public up ( Doctrine\DBAL\Schema\Schema $schema )
$schema Doctrine\DBAL\Schema\Schema