Class BaseCustomerPeer
Base static class for performing query and update operations on the 'customer' table.
Direct known subclasses
Thelia\Model\CustomerPeerNamespace: Thelia\Model\om
Package: propel\generator\Thelia\Model\om
Located at core/lib/Thelia/Model/om/BaseCustomerPeer.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
|
#
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 customer 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(
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
|
#
doCountJoinCustomerTitle( 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 CustomerTitle table |
public static
array
|
#
doSelectJoinCustomerTitle( Criteria $criteria, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Selects a collection of Customer objects pre-filled with their CustomerTitle 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 Customer objects pre-filled with all related objects. |
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 Customer 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
|
'customer' |
#
the table name for this class |
string |
OM_CLASS
|
'Thelia\\Model\\Customer' |
#
the related Propel class for this table |
string |
TM_CLASS
|
'CustomerTableMap' |
#
the related TableMap class for this table |
integer |
NUM_COLUMNS
|
24 |
#
The total number of columns. |
integer |
NUM_LAZY_LOAD_COLUMNS
|
0 |
#
The number of lazy-loaded columns. |
integer |
NUM_HYDRATE_COLUMNS
|
24 |
#
The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) |
string |
ID
|
'customer.ID' |
#
the column name for the ID field |
string |
REF
|
'customer.REF' |
#
the column name for the REF field |
string |
CUSTOMER_TITLE_ID
|
'customer.CUSTOMER_TITLE_ID' |
#
the column name for the CUSTOMER_TITLE_ID field |
string |
COMPANY
|
'customer.COMPANY' |
#
the column name for the COMPANY field |
string |
FIRSTNAME
|
'customer.FIRSTNAME' |
#
the column name for the FIRSTNAME field |
string |
LASTNAME
|
'customer.LASTNAME' |
#
the column name for the LASTNAME field |
string |
ADDRESS1
|
'customer.ADDRESS1' |
#
the column name for the ADDRESS1 field |
string |
ADDRESS2
|
'customer.ADDRESS2' |
#
the column name for the ADDRESS2 field |
string |
ADDRESS3
|
'customer.ADDRESS3' |
#
the column name for the ADDRESS3 field |
string |
ZIPCODE
|
'customer.ZIPCODE' |
#
the column name for the ZIPCODE field |
string |
CITY
|
'customer.CITY' |
#
the column name for the CITY field |
string |
COUNTRY_ID
|
'customer.COUNTRY_ID' |
#
the column name for the COUNTRY_ID field |
string |
PHONE
|
'customer.PHONE' |
#
the column name for the PHONE field |
string |
CELLPHONE
|
'customer.CELLPHONE' |
#
the column name for the CELLPHONE field |
string |
EMAIL
|
'customer.EMAIL' |
#
the column name for the EMAIL field |
string |
PASSWORD
|
'customer.PASSWORD' |
#
the column name for the PASSWORD field |
string |
ALGO
|
'customer.ALGO' |
#
the column name for the ALGO field |
string |
SALT
|
'customer.SALT' |
#
the column name for the SALT field |
string |
RESELLER
|
'customer.RESELLER' |
#
the column name for the RESELLER field |
string |
LANG
|
'customer.LANG' |
#
the column name for the LANG field |
string |
SPONSOR
|
'customer.SPONSOR' |
#
the column name for the SPONSOR field |
string |
DISCOUNT
|
'customer.DISCOUNT' |
#
the column name for the DISCOUNT field |
string |
CREATED_AT
|
'customer.CREATED_AT' |
#
the column name for the CREATED_AT field |
string |
UPDATED_AT
|
'customer.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 Customer 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', 'CustomerTitleId', 'Company', 'Firstname', 'Lastname', 'Address1', 'Address2', 'Address3', 'Zipcode', 'City', 'CountryId', 'Phone', 'Cellphone', 'Email', 'Password', 'Algo', 'Salt', 'Reseller', 'Lang', 'Sponsor', 'Discount', 'CreatedAt', 'UpdatedAt', ),
BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'ref', 'customerTitleId', 'company', 'firstname', 'lastname', 'address1', 'address2', 'address3', 'zipcode', 'city', 'countryId', 'phone', 'cellphone', 'email', 'password', 'algo', 'salt', 'reseller', 'lang', 'sponsor', 'discount', 'createdAt', 'updatedAt', ),
BasePeer::TYPE_COLNAME => array (CustomerPeer::ID, CustomerPeer::REF, CustomerPeer::CUSTOMER_TITLE_ID, CustomerPeer::COMPANY, CustomerPeer::FIRSTNAME, CustomerPeer::LASTNAME, CustomerPeer::ADDRESS1, CustomerPeer::ADDRESS2, CustomerPeer::ADDRESS3, CustomerPeer::ZIPCODE, CustomerPeer::CITY, CustomerPeer::COUNTRY_ID, CustomerPeer::PHONE, CustomerPeer::CELLPHONE, CustomerPeer::EMAIL, CustomerPeer::PASSWORD, CustomerPeer::ALGO, CustomerPeer::SALT, CustomerPeer::RESELLER, CustomerPeer::LANG, CustomerPeer::SPONSOR, CustomerPeer::DISCOUNT, CustomerPeer::CREATED_AT, CustomerPeer::UPDATED_AT, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'REF', 'CUSTOMER_TITLE_ID', 'COMPANY', 'FIRSTNAME', 'LASTNAME', 'ADDRESS1', 'ADDRESS2', 'ADDRESS3', 'ZIPCODE', 'CITY', 'COUNTRY_ID', 'PHONE', 'CELLPHONE', 'EMAIL', 'PASSWORD', 'ALGO', 'SALT', 'RESELLER', 'LANG', 'SPONSOR', 'DISCOUNT', 'CREATED_AT', 'UPDATED_AT', ),
BasePeer::TYPE_FIELDNAME => array ('id', 'ref', 'customer_title_id', 'company', 'firstname', 'lastname', 'address1', 'address2', 'address3', 'zipcode', 'city', 'country_id', 'phone', 'cellphone', 'email', 'password', 'algo', 'salt', 'reseller', 'lang', 'sponsor', 'discount', '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, 18, 19, 20, 21, 22, 23, )
) |
#
holds an array of fieldnames |
protected static
array
|
$fieldKeys | array (
BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Ref' => 1, 'CustomerTitleId' => 2, 'Company' => 3, 'Firstname' => 4, 'Lastname' => 5, 'Address1' => 6, 'Address2' => 7, 'Address3' => 8, 'Zipcode' => 9, 'City' => 10, 'CountryId' => 11, 'Phone' => 12, 'Cellphone' => 13, 'Email' => 14, 'Password' => 15, 'Algo' => 16, 'Salt' => 17, 'Reseller' => 18, 'Lang' => 19, 'Sponsor' => 20, 'Discount' => 21, 'CreatedAt' => 22, 'UpdatedAt' => 23, ),
BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'ref' => 1, 'customerTitleId' => 2, 'company' => 3, 'firstname' => 4, 'lastname' => 5, 'address1' => 6, 'address2' => 7, 'address3' => 8, 'zipcode' => 9, 'city' => 10, 'countryId' => 11, 'phone' => 12, 'cellphone' => 13, 'email' => 14, 'password' => 15, 'algo' => 16, 'salt' => 17, 'reseller' => 18, 'lang' => 19, 'sponsor' => 20, 'discount' => 21, 'createdAt' => 22, 'updatedAt' => 23, ),
BasePeer::TYPE_COLNAME => array (CustomerPeer::ID => 0, CustomerPeer::REF => 1, CustomerPeer::CUSTOMER_TITLE_ID => 2, CustomerPeer::COMPANY => 3, CustomerPeer::FIRSTNAME => 4, CustomerPeer::LASTNAME => 5, CustomerPeer::ADDRESS1 => 6, CustomerPeer::ADDRESS2 => 7, CustomerPeer::ADDRESS3 => 8, CustomerPeer::ZIPCODE => 9, CustomerPeer::CITY => 10, CustomerPeer::COUNTRY_ID => 11, CustomerPeer::PHONE => 12, CustomerPeer::CELLPHONE => 13, CustomerPeer::EMAIL => 14, CustomerPeer::PASSWORD => 15, CustomerPeer::ALGO => 16, CustomerPeer::SALT => 17, CustomerPeer::RESELLER => 18, CustomerPeer::LANG => 19, CustomerPeer::SPONSOR => 20, CustomerPeer::DISCOUNT => 21, CustomerPeer::CREATED_AT => 22, CustomerPeer::UPDATED_AT => 23, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'REF' => 1, 'CUSTOMER_TITLE_ID' => 2, 'COMPANY' => 3, 'FIRSTNAME' => 4, 'LASTNAME' => 5, 'ADDRESS1' => 6, 'ADDRESS2' => 7, 'ADDRESS3' => 8, 'ZIPCODE' => 9, 'CITY' => 10, 'COUNTRY_ID' => 11, 'PHONE' => 12, 'CELLPHONE' => 13, 'EMAIL' => 14, 'PASSWORD' => 15, 'ALGO' => 16, 'SALT' => 17, 'RESELLER' => 18, 'LANG' => 19, 'SPONSOR' => 20, 'DISCOUNT' => 21, 'CREATED_AT' => 22, 'UPDATED_AT' => 23, ),
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'ref' => 1, 'customer_title_id' => 2, 'company' => 3, 'firstname' => 4, 'lastname' => 5, 'address1' => 6, 'address2' => 7, 'address3' => 8, 'zipcode' => 9, 'city' => 10, 'country_id' => 11, 'phone' => 12, 'cellphone' => 13, 'email' => 14, 'password' => 15, 'algo' => 16, 'salt' => 17, 'reseller' => 18, 'lang' => 19, 'sponsor' => 20, 'discount' => 21, 'created_at' => 22, 'updated_at' => 23, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, )
) |
#
holds an array of keys for quick access to the fieldnames array |