Class BaseOrderPeer
Base static class for performing query and update operations on the 'order' table.
Direct known subclasses
Thelia\Model\OrderPeerNamespace: Thelia\Model\om
Package: propel\generator\Thelia\Model\om
Located at core/lib/Thelia/Model/om/BaseOrderPeer.php
public static
string
|
#
translateFieldName( string $name, string $fromType, string $toType )
Translates a fieldname to another type |
public static
array
|
#
getFieldNames( string $type = Thelia\Model\om\BasePeer::TYPE_PHPNAME )
Returns an array of field names. |
public static
string
|
|
public static
|
#
addSelectColumns( Criteria $criteria, string $alias = null )
Add all the columns needed to create a new object. |
public static
integer
|
|
public static
|
|
public static
array
|
|
public static
PDOStatement
|
#
doSelectStmt( Criteria $criteria, PropelPDO $con = null )
Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. |
public static
|
#
addInstanceToPool(
Adds an object to the instance pool. |
public static
|
|
public static
|
#
getInstanceFromPool( string $key )
Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. |
public static
|
|
public static
|
#
clearRelatedInstancePool( )
Method to invalidate the instance pool of all tables related to order by a foreign key with ON DELETE CASCADE |
public static
string
|
#
getPrimaryKeyHashFromRow( array $row, integer $startcol = 0 )
Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. |
public static
mixed
|
#
getPrimaryKeyFromRow( array $row, integer $startcol = 0 )
Retrieves the primary key from the DB resultset row For tables with a single-column primary key, that simple pkey value will be returned. For tables with a multi-column primary key, an array of the primary key columns will be returned. |
public static
|
#
populateObjects( PDOStatement $stmt )
The returned array will contain objects of the default type or objects that inherit from the default. |
public static
array
|
#
populateObject( array $row, integer $startcol = 0 )
Populates an object of the default type or an object that inherit from the default. |
public static
integer
|
#
doCountJoinCurrency( Criteria $criteria, boolean $distinct = false, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Returns the number of rows matching criteria, joining the related Currency table |
public static
integer
|
#
doCountJoinCustomer( Criteria $criteria, boolean $distinct = false, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Returns the number of rows matching criteria, joining the related Customer table |
public static
integer
|
#
doCountJoinOrderAddressRelatedByAddressInvoice( Criteria $criteria, boolean $distinct = false, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Returns the number of rows matching criteria, joining the related OrderAddressRelatedByAddressInvoice table |
public static
integer
|
#
doCountJoinOrderAddressRelatedByAddressDelivery( Criteria $criteria, boolean $distinct = false, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Returns the number of rows matching criteria, joining the related OrderAddressRelatedByAddressDelivery table |
public static
integer
|
#
doCountJoinOrderStatus( Criteria $criteria, boolean $distinct = false, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Returns the number of rows matching criteria, joining the related OrderStatus table |
public static
array
|
#
doSelectJoinCurrency( Criteria $criteria, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Selects a collection of Order objects pre-filled with their Currency objects. |
public static
array
|
#
doSelectJoinCustomer( Criteria $criteria, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Selects a collection of Order objects pre-filled with their Customer objects. |
public static
array
|
#
doSelectJoinOrderAddressRelatedByAddressInvoice( Criteria $criteria, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Selects a collection of Order objects pre-filled with their OrderAddress objects. |
public static
array
|
#
doSelectJoinOrderAddressRelatedByAddressDelivery( Criteria $criteria, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Selects a collection of Order objects pre-filled with their OrderAddress objects. |
public static
array
|
#
doSelectJoinOrderStatus( Criteria $criteria, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Selects a collection of Order objects pre-filled with their OrderStatus objects. |
public static
integer
|
#
doCountJoinAll( Criteria $criteria, boolean $distinct = false, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Returns the number of rows matching criteria, joining all related tables |
public static
array
|
#
doSelectJoinAll( Criteria $criteria, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Selects a collection of Order objects pre-filled with all related objects. |
public static
integer
|
#
doCountJoinAllExceptCurrency( Criteria $criteria, boolean $distinct = false, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Returns the number of rows matching criteria, joining the related Currency table |
public static
integer
|
#
doCountJoinAllExceptCustomer( Criteria $criteria, boolean $distinct = false, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Returns the number of rows matching criteria, joining the related Customer table |
public static
integer
|
#
doCountJoinAllExceptOrderAddressRelatedByAddressInvoice( Criteria $criteria, boolean $distinct = false, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Returns the number of rows matching criteria, joining the related OrderAddressRelatedByAddressInvoice table |
public static
integer
|
#
doCountJoinAllExceptOrderAddressRelatedByAddressDelivery( Criteria $criteria, boolean $distinct = false, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Returns the number of rows matching criteria, joining the related OrderAddressRelatedByAddressDelivery table |
public static
integer
|
#
doCountJoinAllExceptOrderStatus( Criteria $criteria, boolean $distinct = false, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Returns the number of rows matching criteria, joining the related OrderStatus table |
public static
array
|
#
doSelectJoinAllExceptCurrency( Criteria $criteria, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Selects a collection of Order objects pre-filled with all related objects except Currency. |
public static
array
|
#
doSelectJoinAllExceptCustomer( Criteria $criteria, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Selects a collection of Order objects pre-filled with all related objects except Customer. |
public static
array
|
#
doSelectJoinAllExceptOrderAddressRelatedByAddressInvoice( Criteria $criteria, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Selects a collection of Order objects pre-filled with all related objects except OrderAddressRelatedByAddressInvoice. |
public static
array
|
#
doSelectJoinAllExceptOrderAddressRelatedByAddressDelivery( Criteria $criteria, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Selects a collection of Order objects pre-filled with all related objects except OrderAddressRelatedByAddressDelivery. |
public static
array
|
#
doSelectJoinAllExceptOrderStatus( Criteria $criteria, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Selects a collection of Order objects pre-filled with all related objects except OrderStatus. |
public static
TableMap
|
#
getTableMap( )
Returns the TableMap related to this peer. This method is not needed for general use but a specific application could have a need. |
public static
|
|
public static
string
|
|
public static
mixed
|
|
public static
integer
|
|
public static
integer
|
|
public static
integer
|
|
public static
mixed
|
#
doValidate(
Validates all modified columns of given Order object. If parameter $columns is either a single column name or an array of column names than only those columns are validated. |
public static
|
|
public static
|
string |
DATABASE_NAME
|
'thelia' |
#
the default database name for this class |
string |
TABLE_NAME
|
'order' |
#
the table name for this class |
string |
OM_CLASS
|
'Thelia\\Model\\Order' |
#
the related Propel class for this table |
string |
TM_CLASS
|
'OrderTableMap' |
#
the related TableMap class for this table |
integer |
NUM_COLUMNS
|
18 |
#
The total number of columns. |
integer |
NUM_LAZY_LOAD_COLUMNS
|
0 |
#
The number of lazy-loaded columns. |
integer |
NUM_HYDRATE_COLUMNS
|
18 |
#
The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) |
string |
ID
|
'order.id' |
#
the column name for the id field |
string |
REF
|
'order.ref' |
#
the column name for the ref field |
string |
CUSTOMER_ID
|
'order.customer_id' |
#
the column name for the customer_id field |
string |
ADDRESS_INVOICE
|
'order.address_invoice' |
#
the column name for the address_invoice field |
string |
ADDRESS_DELIVERY
|
'order.address_delivery' |
#
the column name for the address_delivery field |
string |
INVOICE_DATE
|
'order.invoice_date' |
#
the column name for the invoice_date field |
string |
CURRENCY_ID
|
'order.currency_id' |
#
the column name for the currency_id field |
string |
CURRENCY_RATE
|
'order.currency_rate' |
#
the column name for the currency_rate field |
string |
TRANSACTION
|
'order.transaction' |
#
the column name for the transaction field |
string |
DELIVERY_NUM
|
'order.delivery_num' |
#
the column name for the delivery_num field |
string |
INVOICE
|
'order.invoice' |
#
the column name for the invoice field |
string |
POSTAGE
|
'order.postage' |
#
the column name for the postage field |
string |
PAYMENT
|
'order.payment' |
#
the column name for the payment field |
string |
CARRIER
|
'order.carrier' |
#
the column name for the carrier field |
string |
STATUS_ID
|
'order.status_id' |
#
the column name for the status_id field |
string |
LANG
|
'order.lang' |
#
the column name for the lang field |
string |
CREATED_AT
|
'order.created_at' |
#
the column name for the created_at field |
string |
UPDATED_AT
|
'order.updated_at' |
#
the column name for the updated_at field |
string |
DEFAULT_STRING_FORMAT
|
'YAML' |
#
The default string format for model objects of the related table * |
public static
array
|
$instances | array() |
#
An identiy map to hold any loaded instances of Order objects. This must be public so that other peer classes can access this when hydrating from JOIN queries. |
protected static
array
|
$fieldNames | array (
BasePeer::TYPE_PHPNAME => array ('Id', 'Ref', 'CustomerId', 'AddressInvoice', 'AddressDelivery', 'InvoiceDate', 'CurrencyId', 'CurrencyRate', 'Transaction', 'DeliveryNum', 'Invoice', 'Postage', 'Payment', 'Carrier', 'StatusId', 'Lang', 'CreatedAt', 'UpdatedAt', ),
BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'ref', 'customerId', 'addressInvoice', 'addressDelivery', 'invoiceDate', 'currencyId', 'currencyRate', 'transaction', 'deliveryNum', 'invoice', 'postage', 'payment', 'carrier', 'statusId', 'lang', 'createdAt', 'updatedAt', ),
BasePeer::TYPE_COLNAME => array (OrderPeer::ID, OrderPeer::REF, OrderPeer::CUSTOMER_ID, OrderPeer::ADDRESS_INVOICE, OrderPeer::ADDRESS_DELIVERY, OrderPeer::INVOICE_DATE, OrderPeer::CURRENCY_ID, OrderPeer::CURRENCY_RATE, OrderPeer::TRANSACTION, OrderPeer::DELIVERY_NUM, OrderPeer::INVOICE, OrderPeer::POSTAGE, OrderPeer::PAYMENT, OrderPeer::CARRIER, OrderPeer::STATUS_ID, OrderPeer::LANG, OrderPeer::CREATED_AT, OrderPeer::UPDATED_AT, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'REF', 'CUSTOMER_ID', 'ADDRESS_INVOICE', 'ADDRESS_DELIVERY', 'INVOICE_DATE', 'CURRENCY_ID', 'CURRENCY_RATE', 'TRANSACTION', 'DELIVERY_NUM', 'INVOICE', 'POSTAGE', 'PAYMENT', 'CARRIER', 'STATUS_ID', 'LANG', 'CREATED_AT', 'UPDATED_AT', ),
BasePeer::TYPE_FIELDNAME => array ('id', 'ref', 'customer_id', 'address_invoice', 'address_delivery', 'invoice_date', 'currency_id', 'currency_rate', 'transaction', 'delivery_num', 'invoice', 'postage', 'payment', 'carrier', 'status_id', 'lang', 'created_at', 'updated_at', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, )
) |
#
holds an array of fieldnames |
protected static
array
|
$fieldKeys | array (
BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Ref' => 1, 'CustomerId' => 2, 'AddressInvoice' => 3, 'AddressDelivery' => 4, 'InvoiceDate' => 5, 'CurrencyId' => 6, 'CurrencyRate' => 7, 'Transaction' => 8, 'DeliveryNum' => 9, 'Invoice' => 10, 'Postage' => 11, 'Payment' => 12, 'Carrier' => 13, 'StatusId' => 14, 'Lang' => 15, 'CreatedAt' => 16, 'UpdatedAt' => 17, ),
BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'ref' => 1, 'customerId' => 2, 'addressInvoice' => 3, 'addressDelivery' => 4, 'invoiceDate' => 5, 'currencyId' => 6, 'currencyRate' => 7, 'transaction' => 8, 'deliveryNum' => 9, 'invoice' => 10, 'postage' => 11, 'payment' => 12, 'carrier' => 13, 'statusId' => 14, 'lang' => 15, 'createdAt' => 16, 'updatedAt' => 17, ),
BasePeer::TYPE_COLNAME => array (OrderPeer::ID => 0, OrderPeer::REF => 1, OrderPeer::CUSTOMER_ID => 2, OrderPeer::ADDRESS_INVOICE => 3, OrderPeer::ADDRESS_DELIVERY => 4, OrderPeer::INVOICE_DATE => 5, OrderPeer::CURRENCY_ID => 6, OrderPeer::CURRENCY_RATE => 7, OrderPeer::TRANSACTION => 8, OrderPeer::DELIVERY_NUM => 9, OrderPeer::INVOICE => 10, OrderPeer::POSTAGE => 11, OrderPeer::PAYMENT => 12, OrderPeer::CARRIER => 13, OrderPeer::STATUS_ID => 14, OrderPeer::LANG => 15, OrderPeer::CREATED_AT => 16, OrderPeer::UPDATED_AT => 17, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'REF' => 1, 'CUSTOMER_ID' => 2, 'ADDRESS_INVOICE' => 3, 'ADDRESS_DELIVERY' => 4, 'INVOICE_DATE' => 5, 'CURRENCY_ID' => 6, 'CURRENCY_RATE' => 7, 'TRANSACTION' => 8, 'DELIVERY_NUM' => 9, 'INVOICE' => 10, 'POSTAGE' => 11, 'PAYMENT' => 12, 'CARRIER' => 13, 'STATUS_ID' => 14, 'LANG' => 15, 'CREATED_AT' => 16, 'UPDATED_AT' => 17, ),
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'ref' => 1, 'customer_id' => 2, 'address_invoice' => 3, 'address_delivery' => 4, 'invoice_date' => 5, 'currency_id' => 6, 'currency_rate' => 7, 'transaction' => 8, 'delivery_num' => 9, 'invoice' => 10, 'postage' => 11, 'payment' => 12, 'carrier' => 13, 'status_id' => 14, 'lang' => 15, 'created_at' => 16, 'updated_at' => 17, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, )
) |
#
holds an array of keys for quick access to the fieldnames array |