Class BaseProductPeer
Base static class for performing query and update operations on the 'product' table.
Direct known subclasses
Thelia\Model\ProductPeerNamespace: Thelia\Model\om
Package: propel\generator\Thelia\Model\om
Located at core/lib/Thelia/Model/om/BaseProductPeer.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 product 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
|
#
doCountJoinTaxRule( 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 TaxRule table |
public static
array
|
#
doSelectJoinTaxRule( Criteria $criteria, PropelPDO $con = null, String $join_behavior = Thelia\Model\om\Criteria::LEFT_JOIN )
Selects a collection of Product objects pre-filled with their TaxRule 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 Product 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 Product 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
|
|
public static
boolean
|
|
public static
|
|
public static
|
string |
DATABASE_NAME
|
'thelia' |
#
the default database name for this class |
string |
TABLE_NAME
|
'product' |
#
the table name for this class |
string |
OM_CLASS
|
'Thelia\\Model\\Product' |
#
the related Propel class for this table |
string |
TM_CLASS
|
'ProductTableMap' |
#
the related TableMap class for this table |
integer |
NUM_COLUMNS
|
17 |
#
The total number of columns. |
integer |
NUM_LAZY_LOAD_COLUMNS
|
0 |
#
The number of lazy-loaded columns. |
integer |
NUM_HYDRATE_COLUMNS
|
17 |
#
The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) |
string |
ID
|
'product.id' |
#
the column name for the id field |
string |
TAX_RULE_ID
|
'product.tax_rule_id' |
#
the column name for the tax_rule_id field |
string |
REF
|
'product.ref' |
#
the column name for the ref field |
string |
PRICE
|
'product.price' |
#
the column name for the price field |
string |
PRICE2
|
'product.price2' |
#
the column name for the price2 field |
string |
ECOTAX
|
'product.ecotax' |
#
the column name for the ecotax field |
string |
NEWNESS
|
'product.newness' |
#
the column name for the newness field |
string |
PROMO
|
'product.promo' |
#
the column name for the promo field |
string |
STOCK
|
'product.stock' |
#
the column name for the stock field |
string |
VISIBLE
|
'product.visible' |
#
the column name for the visible field |
string |
WEIGHT
|
'product.weight' |
#
the column name for the weight field |
string |
POSITION
|
'product.position' |
#
the column name for the position field |
string |
CREATED_AT
|
'product.created_at' |
#
the column name for the created_at field |
string |
UPDATED_AT
|
'product.updated_at' |
#
the column name for the updated_at field |
string |
VERSION
|
'product.version' |
#
the column name for the version field |
string |
VERSION_CREATED_AT
|
'product.version_created_at' |
#
the column name for the version_created_at field |
string |
VERSION_CREATED_BY
|
'product.version_created_by' |
#
the column name for the version_created_by field |
string |
DEFAULT_STRING_FORMAT
|
'YAML' |
#
The default string format for model objects of the related table * |
string |
DEFAULT_LOCALE
|
'en_US' |
#
The default locale to use for translations |
public static
array
|
$instances | array() |
#
An identiy map to hold any loaded instances of Product objects. This must be public so that other peer classes can access this when hydrating from JOIN queries. |
public static
boolean
|
$isVersioningEnabled | true |
#
Whether the versioning is enabled |
protected static
array
|
$fieldNames | array (
BasePeer::TYPE_PHPNAME => array ('Id', 'TaxRuleId', 'Ref', 'Price', 'Price2', 'Ecotax', 'Newness', 'Promo', 'Stock', 'Visible', 'Weight', 'Position', 'CreatedAt', 'UpdatedAt', 'Version', 'VersionCreatedAt', 'VersionCreatedBy', ),
BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'taxRuleId', 'ref', 'price', 'price2', 'ecotax', 'newness', 'promo', 'stock', 'visible', 'weight', 'position', 'createdAt', 'updatedAt', 'version', 'versionCreatedAt', 'versionCreatedBy', ),
BasePeer::TYPE_COLNAME => array (ProductPeer::ID, ProductPeer::TAX_RULE_ID, ProductPeer::REF, ProductPeer::PRICE, ProductPeer::PRICE2, ProductPeer::ECOTAX, ProductPeer::NEWNESS, ProductPeer::PROMO, ProductPeer::STOCK, ProductPeer::VISIBLE, ProductPeer::WEIGHT, ProductPeer::POSITION, ProductPeer::CREATED_AT, ProductPeer::UPDATED_AT, ProductPeer::VERSION, ProductPeer::VERSION_CREATED_AT, ProductPeer::VERSION_CREATED_BY, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'TAX_RULE_ID', 'REF', 'PRICE', 'PRICE2', 'ECOTAX', 'NEWNESS', 'PROMO', 'STOCK', 'VISIBLE', 'WEIGHT', 'POSITION', 'CREATED_AT', 'UPDATED_AT', 'VERSION', 'VERSION_CREATED_AT', 'VERSION_CREATED_BY', ),
BasePeer::TYPE_FIELDNAME => array ('id', 'tax_rule_id', 'ref', 'price', 'price2', 'ecotax', 'newness', 'promo', 'stock', 'visible', 'weight', 'position', 'created_at', 'updated_at', 'version', 'version_created_at', 'version_created_by', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, )
) |
#
holds an array of fieldnames |
protected static
array
|
$fieldKeys | array (
BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'TaxRuleId' => 1, 'Ref' => 2, 'Price' => 3, 'Price2' => 4, 'Ecotax' => 5, 'Newness' => 6, 'Promo' => 7, 'Stock' => 8, 'Visible' => 9, 'Weight' => 10, 'Position' => 11, 'CreatedAt' => 12, 'UpdatedAt' => 13, 'Version' => 14, 'VersionCreatedAt' => 15, 'VersionCreatedBy' => 16, ),
BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'taxRuleId' => 1, 'ref' => 2, 'price' => 3, 'price2' => 4, 'ecotax' => 5, 'newness' => 6, 'promo' => 7, 'stock' => 8, 'visible' => 9, 'weight' => 10, 'position' => 11, 'createdAt' => 12, 'updatedAt' => 13, 'version' => 14, 'versionCreatedAt' => 15, 'versionCreatedBy' => 16, ),
BasePeer::TYPE_COLNAME => array (ProductPeer::ID => 0, ProductPeer::TAX_RULE_ID => 1, ProductPeer::REF => 2, ProductPeer::PRICE => 3, ProductPeer::PRICE2 => 4, ProductPeer::ECOTAX => 5, ProductPeer::NEWNESS => 6, ProductPeer::PROMO => 7, ProductPeer::STOCK => 8, ProductPeer::VISIBLE => 9, ProductPeer::WEIGHT => 10, ProductPeer::POSITION => 11, ProductPeer::CREATED_AT => 12, ProductPeer::UPDATED_AT => 13, ProductPeer::VERSION => 14, ProductPeer::VERSION_CREATED_AT => 15, ProductPeer::VERSION_CREATED_BY => 16, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'TAX_RULE_ID' => 1, 'REF' => 2, 'PRICE' => 3, 'PRICE2' => 4, 'ECOTAX' => 5, 'NEWNESS' => 6, 'PROMO' => 7, 'STOCK' => 8, 'VISIBLE' => 9, 'WEIGHT' => 10, 'POSITION' => 11, 'CREATED_AT' => 12, 'UPDATED_AT' => 13, 'VERSION' => 14, 'VERSION_CREATED_AT' => 15, 'VERSION_CREATED_BY' => 16, ),
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'tax_rule_id' => 1, 'ref' => 2, 'price' => 3, 'price2' => 4, 'ecotax' => 5, 'newness' => 6, 'promo' => 7, 'stock' => 8, 'visible' => 9, 'weight' => 10, 'position' => 11, 'created_at' => 12, 'updated_at' => 13, 'version' => 14, 'version_created_at' => 15, 'version_created_by' => 16, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, )
) |
#
holds an array of keys for quick access to the fieldnames array |