symfony API

sfDoctrineColumn 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.4 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.

Represents a Doctrine column

Method Summary

  • array getDefinitionKey($key)
    Get the value of a column definition key
  • void getDoctrineType()
    Get the Doctrine type of the column
  • string getFieldName()
    Get the alias/field name
  • string getForeignClassName()
    Get the name of the related class for this column foreign key.
  • Doctrine_Table getForeignTable()
    If foreign key get the related Doctrine_Table object
  • getLength()
  • string getName()
    Get the name of the column
  • string getPhpName()
    Get php name. Exists for backwards compatibility with propel orm
  • mixed|null getRelationKey($key)
    Returns a value from the current column's relation.
  • void getSize()
    Get size/length of the column
  • Doctrine_Table getTable()
    Get the Doctrine_Table object this column belongs to
  • void getType()
    Get symfony type of the column
  • bool hasDefinitionKey($key)
    Check if the column definition has a certain key
  • boolean isForeignKey()
    Returns true if this column is a foreign key and false if it is not
  • boolean isNotNull()
    Returns true of the column is not null and false if it is null
  • void isPrimaryKey()
    Returns true if the column is a primary key and false if it is not
  • offsetExists()
  • offsetGet()
  • offsetSet()
  • offsetUnset()
  • void setTable($table)
    Set the Doctrine_Table object this column belongs to
  • __construct()
    Definition of the column

Method Details

  • (array) getDefinitionKey ($key)

    Get the value of a column definition key

    returns $definition

  • (void) getDoctrineType ()

    Get the Doctrine type of the column

  • (string) getFieldName ()

    Get the alias/field name

    returns $fieldName

  • (string) getForeignClassName ()

    Get the name of the related class for this column foreign key.

    returns $foreignClassName

  • (Doctrine_Table) getForeignTable ()

    If foreign key get the related Doctrine_Table object

    returns $table

  • getLength ()

  • (string) getName ()

    Get the name of the column

    returns $name

  • (string) getPhpName ()

    Get php name. Exists for backwards compatibility with propel orm

    returns $fieldName

  • (mixed|null) getRelationKey ($key)

    Returns a value from the current column's relation.

  • (void) getSize ()

    Get size/length of the column

  • (Doctrine_Table) getTable ()

    Get the Doctrine_Table object this column belongs to

    returns $table

  • (void) getType ()

    Get symfony type of the column

  • (bool) hasDefinitionKey ($key)

    Check if the column definition has a certain key

  • (boolean) isForeignKey ()

    Returns true if this column is a foreign key and false if it is not

    returns $isForeignKey

  • (boolean) isNotNull ()

    Returns true of the column is not null and false if it is null

  • (void) isPrimaryKey ()

    Returns true if the column is a primary key and false if it is not

  • offsetExists ()

  • offsetGet ()

  • offsetSet ()

  • offsetUnset ()

  • (void) setTable ($table)

    Set the Doctrine_Table object this column belongs to

  • __construct ()

    Definition of the column