symfony API

sfPropelDatabaseSchema Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

Packages

You are currently browsing the symfony API for the 1.2 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

Manages propel database schemas as YAML and XML.

Method Summary

Method Details

  • (array) asArray ()

    Dumps schema as array

  • (unknown) asXML ()

    Dumps schema as propel xml

  • (string) asYAML ()

    Dumps schema as yaml

  • (array) convertNewToOldYaml ($schema)

    $schema

    Converts new yaml schema format to old yaml schema

  • (array) convertOldToNewYaml ($schema)

    $schema

    Converts old yaml format schema to new yaml schema

  • (array) findTable ($table_name)

    $table_name

    Find table by name

  • fixXML ()

    Fixed xml for using short hand syntax

  • fixXMLColumns ()

    Fixes xml columns

  • fixXMLForeignKeys ()

    Fixes xml foreign keys

  • fixXMLIndexes ()

    Fixes xml indices

  • fixYAMLColumns ()

    Fixes columns in yaml shorthand schema

  • fixYAMLDatabase ()

    Fixes databases in yaml shorthand schema

  • fixYAMLI18n ()

    Fixes i18n tables in yaml shorthand schema

  • (string) getAttributesFor ($tag)

    $tag

    Returns attributes for a tag

  • (array) getAttributesForColumn ($tb_name, $col_name, $column)

    $tb_name
    $col_name
    $column

    Get attributes for column

  • (array) getAttributesFromCompactType ($type)

    $type

    Returns attributes for compact type

    returns The attributes for type

  • (array) getChildren ($hash)

    $hash

    Returns the children for a given hash

  • getCorrectValueFor ($key, $value)

    $key
    $value

  • (array) getNameAndAttributes ($hash, $name_attribute = 'name')

    $hash
    $name_attribute

    Returns name and attributes from given hash

  • (array) getTables ()

    Returns the tables for database

  • loadArray ($schema_array)

    $schema_array

    Load schema from array

  • loadXML ($file)

    $file The path to the propel xml schema

    Loads propel xml schema

  • loadYAML ($file)

    $file

    Load schema from YAML file

  • removeEmptyKey (&$hash, $key)

    &$hash
    $key

  • setIfNotSet (&$entry, $key, $value, $entry)

    &$entry
    $key
    $value
    $entry

    Sets entry if not set