-
(string) arrayExport ($values)
Browse code
Array export. Export array to formatted php code
returns $php
-
(array) filterModels ()
Browse code
Filter out models that have disabled generation of form classes
returns $models Array of models to generate forms for
-
Generates classes and templates in cache.
returns The data to put in configuration cache
-
(integer) getColumnNameMaxLength ()
Browse code
Returns the maximum length for a column name.
returns The length of the longer column name
-
Get array of sfDoctrineColumn objects that exist on the current model but not its parent.
returns $columns
-
(array) getForeignKeyNames ()
Browse code
Returns PHP names for all foreign keys of the current table.
This method does not returns foreign keys that are also primary keys.
returns An array composed of: * The foreign table PHP name * The foreign key PHP name * A Boolean to indicate whether the column is required or not * A Boolean to indicate whether the column is a many to many relationship or not
-
(string) getFormClassToExtend ()
Browse code
Get the name of the form class to extend based on the inheritance of the model
-
(string) getI18nModel ()
Browse code
Returns the i18n model name for the current table.
returns The model class name
-
(array) getManyToManyRelations ()
Browse code
Returns an array of relations that represents a many to many relationship.
returns An array of relations
-
(string|null) getParentModel ()
Browse code
Returns the name of the model class this model extends.
-
(array) getPluginModels ()
Browse code
Get all the models which are a part of a plugin and the name of the plugin.
The array format is modelName => pluginName
returns $pluginModels
-
(string) getPluginNameForModel ($modelName)
Browse code
Get the name of the plugin a model belongs to
returns $pluginName
-
Returns the first primary key column of the current table.
-
(array) getPrimaryKeyColumNames ()
Browse code
Returns an array of primary key column names.
returns An array of primary key column names
-
(string) getPrimaryKeyColumNamesAsString ()
Browse code
Returns a PHP string representation for the array of all primary key column names.
returns A PHP string representation for the array of all primary key column names
-
getUniqueColumnNames ()
Browse code
-
(string) getValidatorClassForColumn ($column)
Browse code
Returns a sfValidator class name for a given column.
returns The name of a subclass of sfValidator
-
(string) getValidatorOptionsForColumn ($column)
Browse code
Returns a PHP string representing options to pass to a validator for a given column.
returns The options to pass to the validator as a PHP string
-
(string) getWidgetClassForColumn ($column)
Browse code
Returns a sfWidgetForm class name for a given column.
returns The name of a subclass of sfWidgetForm
-
(string) getWidgetOptionsForColumn ($column)
Browse code
Returns a PHP string representing options to pass to a widget for a given column.
returns The options to pass to the widget as a PHP string
-
Initializes the current sfGenerator instance.
-
Returns true if the current table is internationalized.
returns true if the current table is internationalized, false otherwise
-
(boolean) isPluginModel ($modelName)
Browse code
Check to see if a model is part of a plugin
returns $bool
-
Loads all Doctrine builders.
-