symfony API

sfDoctrineGenerator 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:

Doctrine generator.

Inheritence

sfDoctrineGenerator  <  sfModelGenerator < sfGenerator

Method Summary

  • configure()
    Configures this generator.
  • array getAllFieldNames($withM2M)
    Gets all the fields for the current model.
  • string getColumnGetter($column, $developed, $prefix)
    Returns the getter either non-developped: 'getFoo' or developped: '$class->getFoo()'.
  • array getColumns()
    Get array of sfDoctrineAdminColumn objects
  • array getDefaultFieldsConfiguration()
    Returns the default configuration for fields.
  • array getFieldsConfiguration($context)
    Returns the configuration for fields in a given context.
  • array getManyToManyTables()
    Returns an array of tables that represents a many to many relationship.
  • string getType($column)
    Returns the type of a column.
  • initialize($generatorManager)
    Initializes the current sfGenerator instance.
  • loadPrimaryKeys()
    Loads primary keys.

Methods inherited from sfModelGenerator

addCredentialCondition , asPhp , configure , escapeString , generate , getActionsBaseClass , getAllFieldNames , getColumnGetter , getFormMultipartHtml , getFormObject , getI18nCatalogue , getI18NString , getLinkToAction , getManyToManyTables , getModelClass , getPluralName , getPrimaryKeys , getPrimaryKeyUrlParams , getRetrieveByPkParamsForAction , getSingularName , getType , getUrlForAction , loadConfiguration , renderField , validateParameters

Methods inherited from sfGenerator

evalTemplate , generate , generatePhpFiles , getGeneratedModuleName , getGeneratorClass , getGeneratorManager , getModuleName , getTheme , initialize , replacePhpMarks , setGeneratedModuleName , setGeneratorClass , setModuleName , setTheme , __construct

Method Details

  • configure () Browse code

    Configures this generator.

  • (array) getAllFieldNames ($withM2M) Browse code

    $withM2M Whether to include m2m fields or not

    Gets all the fields for the current model.

    returns An array of field names

  • (string) getColumnGetter ($column, $developed, $prefix) Browse code

    $column The column name
    $developed true if you want developped method names, false otherwise
    $prefix The prefix value

    Returns the getter either non-developped: 'getFoo' or developped: '$class->getFoo()'.

    returns PHP code

  • (array) getColumns () Browse code

    Get array of sfDoctrineAdminColumn objects

    returns $columns

  • (array) getDefaultFieldsConfiguration () Browse code

    Returns the default configuration for fields.

    returns An array of default configuration for all fields

  • (array) getFieldsConfiguration ($context) Browse code

    $context The Context

    Returns the configuration for fields in a given context.

    returns An array of configuration for all the fields in a given context

  • (array) getManyToManyTables () Browse code

    Returns an array of tables that represents a many to many relationship.


    A table is considered to be a m2m table if it has 2 foreign keys that are also primary keys.

    returns An array of tables.

  • (string) getType ($column) Browse code

    $column A column object

    Returns the type of a column.

    returns The column type

  • initialize ($generatorManager) Browse code

    $generatorManager A sfGeneratorManager instance

    Initializes the current sfGenerator instance.

  • loadPrimaryKeys () Browse code

    Loads primary keys.

    throws sfException