Overview

Namespaces

  • PHP
  • Thelia
    • Action
    • Controller
    • Core
      • Bundle
      • Event
      • EventListener
      • Template
    • Exception
    • Log
      • Destination
    • Model
      • map
      • om
    • Routing
      • Matcher
    • Tools

Classes

  • BaseAccessory
  • BaseAccessoryPeer
  • BaseAccessoryQuery
  • BaseAddress
  • BaseAddressPeer
  • BaseAddressQuery
  • BaseAdmin
  • BaseAdminGroup
  • BaseAdminGroupPeer
  • BaseAdminGroupQuery
  • BaseAdminLog
  • BaseAdminLogPeer
  • BaseAdminLogQuery
  • BaseAdminPeer
  • BaseAdminQuery
  • BaseArea
  • BaseAreaPeer
  • BaseAreaQuery
  • BaseAttribute
  • BaseAttributeAv
  • BaseAttributeAvDesc
  • BaseAttributeAvDescPeer
  • BaseAttributeAvDescQuery
  • BaseAttributeAvI18n
  • BaseAttributeAvI18nPeer
  • BaseAttributeAvI18nQuery
  • BaseAttributeAvPeer
  • BaseAttributeAvQuery
  • BaseAttributeCategory
  • BaseAttributeCategoryPeer
  • BaseAttributeCategoryQuery
  • BaseAttributeCombination
  • BaseAttributeCombinationPeer
  • BaseAttributeCombinationQuery
  • BaseAttributeDesc
  • BaseAttributeDescPeer
  • BaseAttributeDescQuery
  • BaseAttributeI18n
  • BaseAttributeI18nPeer
  • BaseAttributeI18nQuery
  • BaseAttributePeer
  • BaseAttributeQuery
  • BaseCategory
  • BaseCategoryDesc
  • BaseCategoryDescPeer
  • BaseCategoryDescQuery
  • BaseCategoryI18n
  • BaseCategoryI18nPeer
  • BaseCategoryI18nQuery
  • BaseCategoryPeer
  • BaseCategoryQuery
  • BaseCategoryVersion
  • BaseCategoryVersionPeer
  • BaseCategoryVersionQuery
  • BaseCombination
  • BaseCombinationPeer
  • BaseCombinationQuery
  • BaseConfig
  • BaseConfigDesc
  • BaseConfigDescPeer
  • BaseConfigDescQuery
  • BaseConfigI18n
  • BaseConfigI18nPeer
  • BaseConfigI18nQuery
  • BaseConfigPeer
  • BaseConfigQuery
  • BaseContent
  • BaseContentAssoc
  • BaseContentAssocPeer
  • BaseContentAssocQuery
  • BaseContentDesc
  • BaseContentDescPeer
  • BaseContentDescQuery
  • BaseContentFolder
  • BaseContentFolderPeer
  • BaseContentFolderQuery
  • BaseContentI18n
  • BaseContentI18nPeer
  • BaseContentI18nQuery
  • BaseContentPeer
  • BaseContentQuery
  • BaseContentVersion
  • BaseContentVersionPeer
  • BaseContentVersionQuery
  • BaseCountry
  • BaseCountryDesc
  • BaseCountryDescPeer
  • BaseCountryDescQuery
  • BaseCountryI18n
  • BaseCountryI18nPeer
  • BaseCountryI18nQuery
  • BaseCountryPeer
  • BaseCountryQuery
  • BaseCoupon
  • BaseCouponOrder
  • BaseCouponOrderPeer
  • BaseCouponOrderQuery
  • BaseCouponPeer
  • BaseCouponQuery
  • BaseCouponRule
  • BaseCouponRulePeer
  • BaseCouponRuleQuery
  • BaseCurrency
  • BaseCurrencyPeer
  • BaseCurrencyQuery
  • BaseCustomer
  • BaseCustomerPeer
  • BaseCustomerQuery
  • BaseCustomerTitle
  • BaseCustomerTitleDesc
  • BaseCustomerTitleDescPeer
  • BaseCustomerTitleDescQuery
  • BaseCustomerTitleI18n
  • BaseCustomerTitleI18nPeer
  • BaseCustomerTitleI18nQuery
  • BaseCustomerTitlePeer
  • BaseCustomerTitleQuery
  • BaseDelivzone
  • BaseDelivzonePeer
  • BaseDelivzoneQuery
  • BaseDocument
  • BaseDocumentDesc
  • BaseDocumentDescPeer
  • BaseDocumentDescQuery
  • BaseDocumentI18n
  • BaseDocumentI18nPeer
  • BaseDocumentI18nQuery
  • BaseDocumentPeer
  • BaseDocumentQuery
  • BaseFeature
  • BaseFeatureAv
  • BaseFeatureAvDesc
  • BaseFeatureAvDescPeer
  • BaseFeatureAvDescQuery
  • BaseFeatureAvI18n
  • BaseFeatureAvI18nPeer
  • BaseFeatureAvI18nQuery
  • BaseFeatureAvPeer
  • BaseFeatureAvQuery
  • BaseFeatureCategory
  • BaseFeatureCategoryPeer
  • BaseFeatureCategoryQuery
  • BaseFeatureDesc
  • BaseFeatureDescPeer
  • BaseFeatureDescQuery
  • BaseFeatureI18n
  • BaseFeatureI18nPeer
  • BaseFeatureI18nQuery
  • BaseFeaturePeer
  • BaseFeatureProd
  • BaseFeatureProdPeer
  • BaseFeatureProdQuery
  • BaseFeatureQuery
  • BaseFolder
  • BaseFolderDesc
  • BaseFolderDescPeer
  • BaseFolderDescQuery
  • BaseFolderI18n
  • BaseFolderI18nPeer
  • BaseFolderI18nQuery
  • BaseFolderPeer
  • BaseFolderQuery
  • BaseFolderVersion
  • BaseFolderVersionPeer
  • BaseFolderVersionQuery
  • BaseGroup
  • BaseGroupDesc
  • BaseGroupDescPeer
  • BaseGroupDescQuery
  • BaseGroupI18n
  • BaseGroupI18nPeer
  • BaseGroupI18nQuery
  • BaseGroupModule
  • BaseGroupModulePeer
  • BaseGroupModuleQuery
  • BaseGroupPeer
  • BaseGroupQuery
  • BaseGroupResource
  • BaseGroupResourcePeer
  • BaseGroupResourceQuery
  • BaseImage
  • BaseImageDesc
  • BaseImageDescPeer
  • BaseImageDescQuery
  • BaseImageI18n
  • BaseImageI18nPeer
  • BaseImageI18nQuery
  • BaseImagePeer
  • BaseImageQuery
  • BaseLang
  • BaseLangPeer
  • BaseLangQuery
  • BaseMessage
  • BaseMessageDesc
  • BaseMessageDescPeer
  • BaseMessageDescQuery
  • BaseMessageI18n
  • BaseMessageI18nPeer
  • BaseMessageI18nQuery
  • BaseMessagePeer
  • BaseMessageQuery
  • BaseMessageVersion
  • BaseMessageVersionPeer
  • BaseMessageVersionQuery
  • BaseModuleDesc
  • BaseModuleDescPeer
  • BaseModuleDescQuery
  • BaseModuleI18n
  • BaseModuleI18nPeer
  • BaseModuleI18nQuery
  • BaseModulePeer
  • BaseOrder
  • BaseOrderAddress
  • BaseOrderAddressPeer
  • BaseOrderAddressQuery
  • BaseOrderFeature
  • BaseOrderFeaturePeer
  • BaseOrderFeatureQuery
  • BaseOrderPeer
  • BaseOrderProduct
  • BaseOrderProductPeer
  • BaseOrderProductQuery
  • BaseOrderQuery
  • BaseOrderStatus
  • BaseOrderStatusDesc
  • BaseOrderStatusDescPeer
  • BaseOrderStatusDescQuery
  • BaseOrderStatusI18n
  • BaseOrderStatusI18nPeer
  • BaseOrderStatusI18nQuery
  • BaseOrderStatusPeer
  • BaseOrderStatusQuery
  • BaseProduct
  • BaseProductCategory
  • BaseProductCategoryPeer
  • BaseProductCategoryQuery
  • BaseProductDesc
  • BaseProductDescPeer
  • BaseProductDescQuery
  • BaseProductI18n
  • BaseProductI18nPeer
  • BaseProductI18nQuery
  • BaseProductPeer
  • BaseProductQuery
  • BaseProductVersion
  • BaseProductVersionPeer
  • BaseProductVersionQuery
  • BaseResource
  • BaseResourceDesc
  • BaseResourceDescPeer
  • BaseResourceDescQuery
  • BaseResourceI18n
  • BaseResourceI18nPeer
  • BaseResourceI18nQuery
  • BaseResourcePeer
  • BaseResourceQuery
  • BaseRewriting
  • BaseRewritingPeer
  • BaseRewritingQuery
  • BaseStock
  • BaseStockPeer
  • BaseStockQuery
  • BaseTax
  • BaseTaxDesc
  • BaseTaxDescPeer
  • BaseTaxDescQuery
  • BaseTaxI18n
  • BaseTaxI18nPeer
  • BaseTaxI18nQuery
  • BaseTaxPeer
  • BaseTaxQuery
  • BaseTaxRule
  • BaseTaxRuleCountry
  • BaseTaxRuleCountryPeer
  • BaseTaxRuleCountryQuery
  • BaseTaxRuleDesc
  • BaseTaxRuleDescPeer
  • BaseTaxRuleDescQuery
  • BaseTaxRuleI18n
  • BaseTaxRuleI18nPeer
  • BaseTaxRuleI18nQuery
  • BaseTaxRulePeer
  • BaseTaxRuleQuery
  • Overview
  • Namespace
  • Class
  • Tree

Class BaseOrder

Base class that represents a row from the 'order' table.

BaseObject
Extended by Thelia\Model\om\BaseOrder implements Persistent

Direct known subclasses

Thelia\Model\Order
Abstract
Namespace: Thelia\Model\om
Package: propel\generator\Thelia\Model\om
Located at core/lib/Thelia/Model/om/BaseOrder.php
Methods summary
public integer
# getId( )

Get the [id] column value.

Get the [id] column value.

Returns

integer
public string
# getRef( )

Get the [ref] column value.

Get the [ref] column value.

Returns

string
public integer
# getCustomerId( )

Get the [customer_id] column value.

Get the [customer_id] column value.

Returns

integer
public integer
# getAddressInvoice( )

Get the [address_invoice] column value.

Get the [address_invoice] column value.

Returns

integer
public integer
# getAddressDelivery( )

Get the [address_delivery] column value.

Get the [address_delivery] column value.

Returns

integer
public mixed
# getInvoiceDate( string $format = '%x' )

Get the [optionally formatted] temporal [invoice_date] column value.

Get the [optionally formatted] temporal [invoice_date] column value.

Parameters

$format
string
$format The date/time format string (either date()-style or strftime()-style). If format is null, then the raw DateTime object will be returned.

Returns

mixed
Formatted date/time value as string or DateTime object (if format is null), null if column is null, and 0 if column value is 0000-00-00

Throws

PropelException
- if unable to parse/validate the date/time value.
public integer
# getCurrencyId( )

Get the [currency_id] column value.

Get the [currency_id] column value.

Returns

integer
public float
# getCurrencyRate( )

Get the [currency_rate] column value.

Get the [currency_rate] column value.

Returns

float
public string
# getTransaction( )

Get the [transaction] column value.

Get the [transaction] column value.

Returns

string
public string
# getDeliveryNum( )

Get the [delivery_num] column value.

Get the [delivery_num] column value.

Returns

string
public string
# getInvoice( )

Get the [invoice] column value.

Get the [invoice] column value.

Returns

string
public float
# getPostage( )

Get the [postage] column value.

Get the [postage] column value.

Returns

float
public string
# getPayment( )

Get the [payment] column value.

Get the [payment] column value.

Returns

string
public string
# getCarrier( )

Get the [carrier] column value.

Get the [carrier] column value.

Returns

string
public integer
# getStatusId( )

Get the [status_id] column value.

Get the [status_id] column value.

Returns

integer
public string
# getLang( )

Get the [lang] column value.

Get the [lang] column value.

Returns

string
public mixed
# getCreatedAt( string $format = 'Y-m-d H:i:s' )

Get the [optionally formatted] temporal [created_at] column value.

Get the [optionally formatted] temporal [created_at] column value.

Parameters

$format
string
$format The date/time format string (either date()-style or strftime()-style). If format is null, then the raw DateTime object will be returned.

Returns

mixed
Formatted date/time value as string or DateTime object (if format is null), null if column is null, and 0 if column value is 0000-00-00 00:00:00

Throws

PropelException
- if unable to parse/validate the date/time value.
public mixed
# getUpdatedAt( string $format = 'Y-m-d H:i:s' )

Get the [optionally formatted] temporal [updated_at] column value.

Get the [optionally formatted] temporal [updated_at] column value.

Parameters

$format
string
$format The date/time format string (either date()-style or strftime()-style). If format is null, then the raw DateTime object will be returned.

Returns

mixed
Formatted date/time value as string or DateTime object (if format is null), null if column is null, and 0 if column value is 0000-00-00 00:00:00

Throws

PropelException
- if unable to parse/validate the date/time value.
public Thelia\Model\Order
# setId( integer $v )

Set the value of [id] column.

Set the value of [id] column.

Parameters

$v
integer
$v new value

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setRef( string $v )

Set the value of [ref] column.

Set the value of [ref] column.

Parameters

$v
string
$v new value

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setCustomerId( integer $v )

Set the value of [customer_id] column.

Set the value of [customer_id] column.

Parameters

$v
integer
$v new value

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setAddressInvoice( integer $v )

Set the value of [address_invoice] column.

Set the value of [address_invoice] column.

Parameters

$v
integer
$v new value

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setAddressDelivery( integer $v )

Set the value of [address_delivery] column.

Set the value of [address_delivery] column.

Parameters

$v
integer
$v new value

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setInvoiceDate( mixed $v )

Sets the value of [invoice_date] column to a normalized version of the date/time value specified.

Sets the value of [invoice_date] column to a normalized version of the date/time value specified.

Parameters

$v
mixed
$v string, integer (timestamp), or DateTime value. Empty strings are treated as null.

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setCurrencyId( integer $v )

Set the value of [currency_id] column.

Set the value of [currency_id] column.

Parameters

$v
integer
$v new value

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setCurrencyRate( float $v )

Set the value of [currency_rate] column.

Set the value of [currency_rate] column.

Parameters

$v
float
$v new value

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setTransaction( string $v )

Set the value of [transaction] column.

Set the value of [transaction] column.

Parameters

$v
string
$v new value

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setDeliveryNum( string $v )

Set the value of [delivery_num] column.

Set the value of [delivery_num] column.

Parameters

$v
string
$v new value

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setInvoice( string $v )

Set the value of [invoice] column.

Set the value of [invoice] column.

Parameters

$v
string
$v new value

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setPostage( float $v )

Set the value of [postage] column.

Set the value of [postage] column.

Parameters

$v
float
$v new value

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setPayment( string $v )

Set the value of [payment] column.

Set the value of [payment] column.

Parameters

$v
string
$v new value

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setCarrier( string $v )

Set the value of [carrier] column.

Set the value of [carrier] column.

Parameters

$v
string
$v new value

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setStatusId( integer $v )

Set the value of [status_id] column.

Set the value of [status_id] column.

Parameters

$v
integer
$v new value

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setLang( string $v )

Set the value of [lang] column.

Set the value of [lang] column.

Parameters

$v
string
$v new value

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setCreatedAt( mixed $v )

Sets the value of [created_at] column to a normalized version of the date/time value specified.

Sets the value of [created_at] column to a normalized version of the date/time value specified.

Parameters

$v
mixed
$v string, integer (timestamp), or DateTime value. Empty strings are treated as null.

Returns

Thelia\Model\Order
The current object (for fluent API support)
public Thelia\Model\Order
# setUpdatedAt( mixed $v )

Sets the value of [updated_at] column to a normalized version of the date/time value specified.

Sets the value of [updated_at] column to a normalized version of the date/time value specified.

Parameters

$v
mixed
$v string, integer (timestamp), or DateTime value. Empty strings are treated as null.

Returns

Thelia\Model\Order
The current object (for fluent API support)
public boolean
# hasOnlyDefaultValues( )

Indicates whether the columns in this object are only set to default values.

Indicates whether the columns in this object are only set to default values.

This method can be used in conjunction with isModified() to indicate whether an object is both modified _and_ has some values set which are non-default.

Returns

boolean
Whether the columns in this object are only been set with default values.
public integer
# hydrate( array $row, integer $startcol = 0, boolean $rehydrate = false )

Hydrates (populates) the object variables with values from the database resultset.

Hydrates (populates) the object variables with values from the database resultset.

An offset (0-based "start column") is specified so that objects can be hydrated with a subset of the columns in the resultset rows. This is needed, for example, for results of JOIN queries where the resultset row includes columns from two or more tables.

Parameters

$row
array
$row The row returned by PDOStatement->fetch(PDO::FETCH_NUM)
$startcol
integer
$startcol 0-based offset column which indicates which restultset column to start with.
$rehydrate
boolean
$rehydrate Whether this object is being re-hydrated from the database.

Returns

integer
next starting column

Throws

PropelException
- Any caught Exception will be rewrapped as a PropelException.
public
# ensureConsistency( )

Checks and repairs the internal consistency of the object.

Checks and repairs the internal consistency of the object.

This method is executed after an already-instantiated object is re-hydrated from the database. It exists to check any foreign keys to make sure that the objects related to the current object are correct based on foreign key.

You can override this method in the stub class, but you should always invoke the base method from the overridden method (i.e. parent::ensureConsistency()), in case your model changes.

Throws

PropelException
public
# reload( boolean $deep = false, PropelPDO $con = null )

Reloads this object from datastore based on primary key and (optionally) resets all associated objects.

Reloads this object from datastore based on primary key and (optionally) resets all associated objects.

This will only work if the object has been saved and has a valid primary key set.

Parameters

$deep
boolean
$deep (optional) Whether to also de-associated any related objects.
$con
PropelPDO
$con (optional) The PropelPDO connection to use.

Throws

PropelException
- if this object is deleted, unsaved or doesn't have pk match in db
public
# delete( PropelPDO $con = null )

Removes this object from datastore and sets delete attribute.

Removes this object from datastore and sets delete attribute.

Parameters

$con
PropelPDO
$con

Throws

PropelException
Exception

See

BaseObject::setDeleted()
BaseObject::isDeleted()
public integer
# save( PropelPDO $con = null )

Persists this object to the database.

Persists this object to the database.

If the object is new, it inserts it; otherwise an update is performed. All modified related objects will also be persisted in the doSave() method. This method wraps all precipitate database operations in a single transaction.

Parameters

$con
PropelPDO
$con

Returns

integer
The number of rows affected by this insert/update and any referring fk objects' save() operations.

Throws

PropelException
Exception

See

Thelia\Model\om\BaseOrder::doSave()
protected integer
# doSave( PropelPDO $con )

Performs the work of inserting or updating the row in the database.

Performs the work of inserting or updating the row in the database.

If the object is new, it inserts it; otherwise an update is performed. All related objects are also updated in this method.

Parameters

$con
PropelPDO
$con

Returns

integer
The number of rows affected by this insert/update and any referring fk objects' save() operations.

Throws

PropelException

See

Thelia\Model\om\BaseOrder::save()
protected
# doInsert( PropelPDO $con )

Insert the row in the database.

Insert the row in the database.

Parameters

$con
PropelPDO
$con

Throws

PropelException

See

Thelia\Model\om\BaseOrder::doSave()
protected
# doUpdate( PropelPDO $con )

Update the row in the database.

Update the row in the database.

Parameters

$con
PropelPDO
$con

See

Thelia\Model\om\BaseOrder::doSave()
public array
# getValidationFailures( )

Gets any ValidationFailed objects that resulted from last call to validate().

Gets any ValidationFailed objects that resulted from last call to validate().

Returns

array
ValidationFailed[]

See

Thelia\Model\om\BaseOrder::validate()
public boolean
# validate( mixed $columns = null )

Validates the objects modified field values and all objects related to this table.

Validates the objects modified field values and all objects related to this table.

If $columns is either a column name or an array of column names only those columns are validated.

Parameters

$columns
mixed
$columns Column name or an array of column names.

Returns

boolean
Whether all columns pass validation.

See

Thelia\Model\om\BaseOrder::doValidate()
Thelia\Model\om\BaseOrder::getValidationFailures()
protected mixed
# doValidate( array $columns = null )

This function performs the validation work for complex object models.

This function performs the validation work for complex object models.

In addition to checking the current object, all related objects will also be validated. If all pass then <span class="php-keyword1">true</span> is returned; otherwise an aggreagated array of ValidationFailed objects will be returned.

Parameters

$columns
array
$columns Array of column names to validate.

Returns

mixed
<span class="php-keyword1">true</span> if all validations pass; array of ValidationFailed objets otherwise.
public mixed
# getByName( string $name, string $type = Thelia\Model\om\BasePeer::TYPE_PHPNAME )

Retrieves a field from the object by name passed in as a string.

Retrieves a field from the object by name passed in as a string.

Parameters

$name
string
$name name
$type
string
$type The type of fieldname the $name is of: one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. Defaults to BasePeer::TYPE_PHPNAME

Returns

mixed
Value of field.
public mixed
# getByPosition( integer $pos )

Retrieves a field from the object by Position as specified in the xml schema. Zero-based.

Retrieves a field from the object by Position as specified in the xml schema. Zero-based.

Parameters

$pos
integer
$pos position in xml schema

Returns

mixed
Value of field at $pos
public array
# toArray( string $keyType = Thelia\Model\om\BasePeer::TYPE_PHPNAME, boolean $includeLazyLoadColumns = true, array $alreadyDumpedObjects = array(), boolean $includeForeignObjects = false )

Exports the object as an array.

Exports the object as an array.

You can specify the key type of the array by passing one of the class type constants.

Parameters

$keyType
string
$keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. Defaults to BasePeer::TYPE_PHPNAME.
$includeLazyLoadColumns
boolean
$includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true.
$alreadyDumpedObjects
array
$alreadyDumpedObjects List of objects to skip to avoid recursion
$includeForeignObjects
boolean
$includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE.

Returns

array
an associative array containing the field names (as keys) and field values
public
# setByName( string $name, mixed $value, string $type = Thelia\Model\om\BasePeer::TYPE_PHPNAME )

Sets a field from the object by name passed in as a string.

Sets a field from the object by name passed in as a string.

Parameters

$name
string
$name peer name
$value
mixed
$value field value
$type
string
$type The type of fieldname the $name is of: one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. Defaults to BasePeer::TYPE_PHPNAME
public
# setByPosition( integer $pos, mixed $value )

Sets a field from the object by Position as specified in the xml schema. Zero-based.

Sets a field from the object by Position as specified in the xml schema. Zero-based.

Parameters

$pos
integer
$pos position in xml schema
$value
mixed
$value field value
public
# fromArray( array $arr, string $keyType = Thelia\Model\om\BasePeer::TYPE_PHPNAME )

Populates the object using an array.

Populates the object using an array.

This is particularly useful when populating an object from one of the request arrays (e.g. $_POST). This method goes through the column names, checking to see whether a matching key exists in populated array. If so the setByName() method is called for that column.

You can specify the key type of the array by additionally passing one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. The default key type is the column's BasePeer::TYPE_PHPNAME

Parameters

$arr
array
$arr An array to populate the object from.
$keyType
string
$keyType The type of keys the array uses.
public Criteria
# buildCriteria( )

Build a Criteria object containing the values of all modified columns in this object.

Build a Criteria object containing the values of all modified columns in this object.

Returns

Criteria
The Criteria object containing all modified values.
public Criteria
# buildPkeyCriteria( )

Builds a Criteria object containing the primary key for this object.

Builds a Criteria object containing the primary key for this object.

Unlike buildCriteria() this method includes the primary key values regardless of whether or not they have been modified.

Returns

Criteria
The Criteria object containing value(s) for primary key(s).
public integer
# getPrimaryKey( )

Returns the primary key for this object (row).

Returns the primary key for this object (row).

Returns

integer
public
# setPrimaryKey( integer $key )

Generic method to set the primary key (id column).

Generic method to set the primary key (id column).

Parameters

$key
integer
$key Primary key.
public boolean
# isPrimaryKeyNull( )

Returns true if the primary key for this object is null.

Returns true if the primary key for this object is null.

Returns

boolean
public
# copyInto( object $copyObj, boolean $deepCopy = false, boolean $makeNew = true )

Sets contents of passed object to values from current object.

Sets contents of passed object to values from current object.

If desired, this method can also make copies of all associated (fkey referrers) objects.

Parameters

$copyObj
object
$copyObj An object of Order (or compatible) type.
$deepCopy
boolean
$deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
$makeNew
boolean
$makeNew Whether to reset autoincrement PKs and make the object new.

Throws

PropelException
public Thelia\Model\Order
# copy( boolean $deepCopy = false )

Makes a copy of this object that will be inserted as a new row in table when saved. It creates a new object filling in the simple attributes, but skipping any primary keys that are defined for the table.

Makes a copy of this object that will be inserted as a new row in table when saved. It creates a new object filling in the simple attributes, but skipping any primary keys that are defined for the table.

If desired, this method can also make copies of all associated (fkey referrers) objects.

Parameters

$deepCopy
boolean
$deepCopy Whether to also copy all rows that refer (by fkey) to the current row.

Returns

Thelia\Model\Order
Clone of current object.

Throws

PropelException
public Thelia\Model\OrderPeer
# getPeer( )

Returns a peer instance associated with this om.

Returns a peer instance associated with this om.

Since Peer classes are not to have any instance attributes, this method returns the same instance for all member of this class. The method could therefore be static, but this would prevent one from overriding the behavior.

Returns

Thelia\Model\OrderPeer
public Thelia\Model\Order
# setCurrency( Thelia\Model\Currency $v = null )

Declares an association between this object and a Currency object.

Declares an association between this object and a Currency object.

Parameters

$v
Thelia\Model\Currency
$v

Returns

Thelia\Model\Order
The current object (for fluent API support)

Throws

PropelException
public Thelia\Model\Currency
# getCurrency( PropelPDO $con = null )

Get the associated Currency object

Get the associated Currency object

Parameters

$con
PropelPDO
$con Optional Connection object.

Returns

Thelia\Model\Currency
The associated Currency object.

Throws

PropelException
public Thelia\Model\Order
# setCustomer( Thelia\Model\Customer $v = null )

Declares an association between this object and a Customer object.

Declares an association between this object and a Customer object.

Parameters

$v
Thelia\Model\Customer
$v

Returns

Thelia\Model\Order
The current object (for fluent API support)

Throws

PropelException
public Thelia\Model\Customer
# getCustomer( PropelPDO $con = null )

Get the associated Customer object

Get the associated Customer object

Parameters

$con
PropelPDO
$con Optional Connection object.

Returns

Thelia\Model\Customer
The associated Customer object.

Throws

PropelException
public Thelia\Model\Order
# setOrderAddressRelatedByAddressInvoice( Thelia\Model\OrderAddress $v = null )

Declares an association between this object and a OrderAddress object.

Declares an association between this object and a OrderAddress object.

Parameters

$v
Thelia\Model\OrderAddress
$v

Returns

Thelia\Model\Order
The current object (for fluent API support)

Throws

PropelException
public Thelia\Model\OrderAddress
# getOrderAddressRelatedByAddressInvoice( PropelPDO $con = null )

Get the associated OrderAddress object

Get the associated OrderAddress object

Parameters

$con
PropelPDO
$con Optional Connection object.

Returns

Thelia\Model\OrderAddress
The associated OrderAddress object.

Throws

PropelException
public Thelia\Model\Order
# setOrderAddressRelatedByAddressDelivery( Thelia\Model\OrderAddress $v = null )

Declares an association between this object and a OrderAddress object.

Declares an association between this object and a OrderAddress object.

Parameters

$v
Thelia\Model\OrderAddress
$v

Returns

Thelia\Model\Order
The current object (for fluent API support)

Throws

PropelException
public Thelia\Model\OrderAddress
# getOrderAddressRelatedByAddressDelivery( PropelPDO $con = null )

Get the associated OrderAddress object

Get the associated OrderAddress object

Parameters

$con
PropelPDO
$con Optional Connection object.

Returns

Thelia\Model\OrderAddress
The associated OrderAddress object.

Throws

PropelException
public Thelia\Model\Order
# setOrderStatus( Thelia\Model\OrderStatus $v = null )

Declares an association between this object and a OrderStatus object.

Declares an association between this object and a OrderStatus object.

Parameters

$v
Thelia\Model\OrderStatus
$v

Returns

Thelia\Model\Order
The current object (for fluent API support)

Throws

PropelException
public Thelia\Model\OrderStatus
# getOrderStatus( PropelPDO $con = null )

Get the associated OrderStatus object

Get the associated OrderStatus object

Parameters

$con
PropelPDO
$con Optional Connection object.

Returns

Thelia\Model\OrderStatus
The associated OrderStatus object.

Throws

PropelException
public
# initRelation( string $relationName )

Initializes a collection based on the name of a relation. Avoids crafting an 'init[$relationName]s' method name that wouldn't work when StandardEnglishPluralizer is used.

Initializes a collection based on the name of a relation. Avoids crafting an 'init[$relationName]s' method name that wouldn't work when StandardEnglishPluralizer is used.

Parameters

$relationName
string
$relationName The name of the relation to initialize
public
# clearOrderProducts( )

Clears out the collOrderProducts collection

Clears out the collOrderProducts collection

This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method.

See

addOrderProducts()
public
# resetPartialOrderProducts( mixed $v = true )

reset is the collOrderProducts collection loaded partially

reset is the collOrderProducts collection loaded partially

public
# initOrderProducts( boolean $overrideExisting = true )

Initializes the collOrderProducts collection.

Initializes the collOrderProducts collection.

By default this just sets the collOrderProducts collection to an empty array (like clearcollOrderProducts()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.

Parameters

$overrideExisting
boolean
$overrideExisting If set to true, the method call initializes the collection even if it is not empty
public PropelObjectCollection|Thelia\Model\OrderProduct[]
# getOrderProducts( Criteria $criteria = null, PropelPDO $con = null )

Gets an array of OrderProduct objects which contain a foreign key that references this object.

Gets an array of OrderProduct objects which contain a foreign key that references this object.

If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this Order is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.

Parameters

$criteria
Criteria
$criteria optional Criteria object to narrow the query
$con
PropelPDO
$con optional connection object

Returns

PropelObjectCollection|Thelia\Model\OrderProduct[]
List of OrderProduct objects

Throws

PropelException
public
# setOrderProducts( PropelCollection $orderProducts, PropelPDO $con = null )

Sets a collection of OrderProduct objects related by a one-to-many relationship to the current object. It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.

Sets a collection of OrderProduct objects related by a one-to-many relationship to the current object. It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.

Parameters

$orderProducts
PropelCollection
$orderProducts A Propel collection.
$con
PropelPDO
$con Optional connection object
public integer
# countOrderProducts( Criteria $criteria = null, boolean $distinct = false, PropelPDO $con = null )

Returns the number of related OrderProduct objects.

Returns the number of related OrderProduct objects.

Parameters

$criteria
Criteria
$criteria
$distinct
boolean
$distinct
$con
PropelPDO
$con

Returns

integer
Count of related OrderProduct objects.

Throws

PropelException
public Thelia\Model\Order
# addOrderProduct( Thelia\Model\OrderProduct $l )

Method called to associate a OrderProduct object to this object through the OrderProduct foreign key attribute.

Method called to associate a OrderProduct object to this object through the OrderProduct foreign key attribute.

Parameters

$l
Thelia\Model\OrderProduct
$l OrderProduct

Returns

Thelia\Model\Order
The current object (for fluent API support)
protected
# doAddOrderProduct( Thelia\Model\OrderProduct $orderProduct )

Parameters

$orderProduct
Thelia\Model\OrderProduct
$orderProduct The orderProduct object to add.
public
# removeOrderProduct( Thelia\Model\OrderProduct $orderProduct )

Parameters

$orderProduct
Thelia\Model\OrderProduct
$orderProduct The orderProduct object to remove.
public
# clearCouponOrders( )

Clears out the collCouponOrders collection

Clears out the collCouponOrders collection

This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method.

See

addCouponOrders()
public
# resetPartialCouponOrders( mixed $v = true )

reset is the collCouponOrders collection loaded partially

reset is the collCouponOrders collection loaded partially

public
# initCouponOrders( boolean $overrideExisting = true )

Initializes the collCouponOrders collection.

Initializes the collCouponOrders collection.

By default this just sets the collCouponOrders collection to an empty array (like clearcollCouponOrders()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.

Parameters

$overrideExisting
boolean
$overrideExisting If set to true, the method call initializes the collection even if it is not empty
public PropelObjectCollection|Thelia\Model\CouponOrder[]
# getCouponOrders( Criteria $criteria = null, PropelPDO $con = null )

Gets an array of CouponOrder objects which contain a foreign key that references this object.

Gets an array of CouponOrder objects which contain a foreign key that references this object.

If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this Order is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.

Parameters

$criteria
Criteria
$criteria optional Criteria object to narrow the query
$con
PropelPDO
$con optional connection object

Returns

PropelObjectCollection|Thelia\Model\CouponOrder[]
List of CouponOrder objects

Throws

PropelException
public
# setCouponOrders( PropelCollection $couponOrders, PropelPDO $con = null )

Sets a collection of CouponOrder objects related by a one-to-many relationship to the current object. It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.

Sets a collection of CouponOrder objects related by a one-to-many relationship to the current object. It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.

Parameters

$couponOrders
PropelCollection
$couponOrders A Propel collection.
$con
PropelPDO
$con Optional connection object
public integer
# countCouponOrders( Criteria $criteria = null, boolean $distinct = false, PropelPDO $con = null )

Returns the number of related CouponOrder objects.

Returns the number of related CouponOrder objects.

Parameters

$criteria
Criteria
$criteria
$distinct
boolean
$distinct
$con
PropelPDO
$con

Returns

integer
Count of related CouponOrder objects.

Throws

PropelException
public Thelia\Model\Order
# addCouponOrder( Thelia\Model\CouponOrder $l )

Method called to associate a CouponOrder object to this object through the CouponOrder foreign key attribute.

Method called to associate a CouponOrder object to this object through the CouponOrder foreign key attribute.

Parameters

$l
Thelia\Model\CouponOrder
$l CouponOrder

Returns

Thelia\Model\Order
The current object (for fluent API support)
protected
# doAddCouponOrder( Thelia\Model\CouponOrder $couponOrder )

Parameters

$couponOrder
Thelia\Model\CouponOrder
$couponOrder The couponOrder object to add.
public
# removeCouponOrder( Thelia\Model\CouponOrder $couponOrder )

Parameters

$couponOrder
Thelia\Model\CouponOrder
$couponOrder The couponOrder object to remove.
public
# clear( )

Clears the current object and sets all attributes to their default values

Clears the current object and sets all attributes to their default values

public
# clearAllReferences( boolean $deep = false )

Resets all references to other model objects or collections of model objects.

Resets all references to other model objects or collections of model objects.

This method is a user-space workaround for PHP's inability to garbage collect objects with circular references (even in PHP 5.3). This is currently necessary when using Propel in certain daemon or large-volumne/high-memory operations.

Parameters

$deep
boolean
$deep Whether to also clear the references on all referrer objects.
public string
# __toString( )

return the string representation of this object

return the string representation of this object

Returns

string
public boolean
# isAlreadyInSave( )

return true is the object is in saving state

return true is the object is in saving state

Returns

boolean
public Thelia\Model\Order
# keepUpdateDateUnchanged( )

Mark the current object so that the update date doesn't get updated during next save

Mark the current object so that the update date doesn't get updated during next save

Returns

Thelia\Model\Order
The current object (for fluent API support)
Constants summary
string PEER 'Thelia\\Model\\OrderPeer'
#

Peer class name

Peer class name

Properties summary
protected static Thelia\Model\OrderPeer $peer
#

The Peer class. Instance provides a convenient way of calling static methods on a class that calling code may not be able to identify.

The Peer class. Instance provides a convenient way of calling static methods on a class that calling code may not be able to identify.

protected boolean $startCopy false
#

The flag var to prevent infinit loop in deep copy

The flag var to prevent infinit loop in deep copy

protected integer $id
#

The value for the id field.

The value for the id field.

protected string $ref
#

The value for the ref field.

The value for the ref field.

protected integer $customer_id
#

The value for the customer_id field.

The value for the customer_id field.

protected integer $address_invoice
#

The value for the address_invoice field.

The value for the address_invoice field.

protected integer $address_delivery
#

The value for the address_delivery field.

The value for the address_delivery field.

protected string $invoice_date
#

The value for the invoice_date field.

The value for the invoice_date field.

protected integer $currency_id
#

The value for the currency_id field.

The value for the currency_id field.

protected float $currency_rate
#

The value for the currency_rate field.

The value for the currency_rate field.

protected string $transaction
#

The value for the transaction field.

The value for the transaction field.

protected string $delivery_num
#

The value for the delivery_num field.

The value for the delivery_num field.

protected string $invoice
#

The value for the invoice field.

The value for the invoice field.

protected float $postage
#

The value for the postage field.

The value for the postage field.

protected string $payment
#

The value for the payment field.

The value for the payment field.

protected string $carrier
#

The value for the carrier field.

The value for the carrier field.

protected integer $status_id
#

The value for the status_id field.

The value for the status_id field.

protected string $lang
#

The value for the lang field.

The value for the lang field.

protected string $created_at
#

The value for the created_at field.

The value for the created_at field.

protected string $updated_at
#

The value for the updated_at field.

The value for the updated_at field.

protected Thelia\Model\Currency $aCurrency
#
protected Thelia\Model\Customer $aCustomer
#
protected Thelia\Model\OrderAddress $aOrderAddressRelatedByAddressInvoice
#
protected Thelia\Model\OrderAddress $aOrderAddressRelatedByAddressDelivery
#
protected Thelia\Model\OrderStatus $aOrderStatus
#
protected PropelObjectCollection|Thelia\Model\OrderProduct[] $collOrderProducts
#

Collection to store aggregation of OrderProduct objects.

Collection to store aggregation of OrderProduct objects.

protected mixed $collOrderProductsPartial
#
protected PropelObjectCollection|Thelia\Model\CouponOrder[] $collCouponOrders
#

Collection to store aggregation of CouponOrder objects.

Collection to store aggregation of CouponOrder objects.

protected mixed $collCouponOrdersPartial
#
protected boolean $alreadyInSave false
#

Flag to prevent endless save loop, if this object is referenced by another object which falls in this transaction.

Flag to prevent endless save loop, if this object is referenced by another object which falls in this transaction.

protected boolean $alreadyInValidation false
#

Flag to prevent endless validation loop, if this object is referenced by another object which falls in this transaction.

Flag to prevent endless validation loop, if this object is referenced by another object which falls in this transaction.

protected PropelObjectCollection $orderProductsScheduledForDeletion null
#

An array of objects scheduled for deletion.

An array of objects scheduled for deletion.

protected PropelObjectCollection $couponOrdersScheduledForDeletion null
#

An array of objects scheduled for deletion.

An array of objects scheduled for deletion.

protected array $validationFailures array()
#

Array of ValidationFailed objects.

Array of ValidationFailed objects.

thelia API documentation generated by ApiGen 2.8.0