symfony API

sfPropelDatabaseSchema Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.4 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.4 version. Switch to:

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

    Converts new yaml schema format to old yaml schema

  • (array) convertOldToNewYaml ($schema) Browse code

    Converts old yaml format schema to new yaml schema

  • (array) findTable ($table_name) Browse code

    Find table by name

  • (void) fixXML () Browse code

    Fixed xml for using short hand syntax

  • fixXMLBoolean () Browse code

  • (void) fixXMLColumns () Browse code

    Fixes xml columns

  • (void) fixXMLForeignKeys () Browse code

    Fixes xml foreign keys

  • (void) 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

    Returns attributes for a tag

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

    Get attributes for column

  • (array) getAttributesFromCompactType ($type) Browse code

    Returns attributes for compact type

    returns The attributes for type

  • (array) getChildren ($hash) Browse code

    Returns the children for a given hash

  • getCorrectValueFor () Browse code

  • (array) getNameAndAttributes ($hash, $name_attribute) Browse code

    Returns name and attributes from given hash

  • (array) getTables () Browse code

    Returns the tables for database

  • loadArray ($schema_array) Browse code

    Load schema from array

  • loadXML ($file) Browse code

    $file The path to the propel xml schema

    Loads propel xml schema

  • loadYAML ($file) Browse code

    Load schema from YAML file

  • removeEmptyKey () Browse code

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

    Sets entry if not set