symfony API

sfPropelDatabaseSchema Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.2 API OpenSearch

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 () Browse code

    Dumps schema as array

  • (unknown) asXML () Browse code

    Dumps schema as propel xml

  • (string) asYAML () Browse code

    Dumps schema as yaml

  • (array) convertNewToOldYaml ($schema) Browse code

    $schema

    Converts new yaml schema format to old yaml schema

  • (array) convertOldToNewYaml ($schema) Browse code

    $schema

    Converts old yaml format schema to new yaml schema

  • (array) findTable ($table_name) Browse code

    $table_name

    Find table by name

  • fixXML () Browse code

    Fixed xml for using short hand syntax

  • fixXMLColumns () Browse code

    Fixes xml columns

  • fixXMLForeignKeys () Browse code

    Fixes xml foreign keys

  • fixXMLIndexes () Browse code

    Fixes xml indices

  • fixYAMLColumns () Browse code

    Fixes columns in yaml shorthand schema

  • fixYAMLDatabase () Browse code

    Fixes databases in yaml shorthand schema

  • fixYAMLI18n () Browse code

    Fixes i18n tables in yaml shorthand schema

  • (string) getAttributesFor ($tag) Browse code

    $tag

    Returns attributes for a tag

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

    $tb_name
    $col_name
    $column

    Get attributes for column

  • (array) getAttributesFromCompactType ($type) Browse code

    $type

    Returns attributes for compact type

    returns The attributes for type

  • (array) getChildren ($hash) Browse code

    $hash

    Returns the children for a given hash

  • getCorrectValueFor ($key, $value) Browse code

    $key
    $value

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

    $hash
    $name_attribute

    Returns name and attributes from given hash

  • (array) getTables () Browse code

    Returns the tables for database

  • loadArray ($schema_array) Browse code

    $schema_array

    Load schema from array

  • loadXML ($file) Browse code

    $file The path to the propel xml schema

    Loads propel xml schema

  • loadYAML ($file) Browse code

    $file

    Load schema from YAML file

  • removeEmptyKey (&$hash, $key) Browse code

    &$hash
    $key

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

    &$entry
    $key
    $value
    $entry

    Sets entry if not set