symfony API

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

Base sfDoctrineRecord extends the base Doctrine_Record in Doctrine to provide some

Method Summary

  • construct()
    Initializes internationalization.
  • DateTime getDateTimeObject($dateFieldName)
    Get the Doctrine date value as a PHP DateTime object
  • string getDefaultCulture()
    Return the default culture
  • mixed getPrimaryKey()
    Returns the current record's primary key.
  • boolean isNew()
    Function require by symfony >= 1.2 admin generators.
  • listenToChangeCultureEvent()
    Listens to the user.change_culture event.
  • void setDateTimeObject($dateFieldName, $dateTimeObject)
    Set the Doctrine date value by passing a valid PHP DateTime object instance
  • setDefaultCulture($culture)
    Sets the default culture
  • mixed __call($method, $arguments)
    Provides getter and setter methods.
  • string __toString()
    Returns a string representation of the record.

Method Details

  • construct () Browse code

    Initializes internationalization.

  • (DateTime) getDateTimeObject ($dateFieldName) Browse code

    $dateFieldName The field name to get the DateTime object for

    Get the Doctrine date value as a PHP DateTime object

    returns $dateTime The instance of PHPs DateTime

  • (string) getDefaultCulture () Browse code

    Return the default culture

    returns the default culture

  • (mixed) getPrimaryKey () Browse code

    Returns the current record's primary key.


    This a proxy method to {@link Doctrine_Record::identifier()} for
    compatibility with a Propel-style API.

    returns The value of the current model's last identifier column

  • (boolean) isNew () Browse code

    Function require by symfony >= 1.2 admin generators.

  • listenToChangeCultureEvent () Browse code

    Listens to the user.change_culture event.

  • (void) setDateTimeObject ($dateFieldName, $dateTimeObject) Browse code

    $dateFieldName The field name to set the date for
    $dateTimeObject The DateTime instance to use to set the value

    Set the Doctrine date value by passing a valid PHP DateTime object instance

  • setDefaultCulture ($culture) Browse code

    Sets the default culture

  • (mixed) __call ($method, $arguments) Browse code

    $method The method name
    $arguments The method arguments

    Provides getter and setter methods.

    returns The returned value of the called method

  • (string) __toString () Browse code

    Returns a string representation of the record.

    returns A string representation of the record