ProductVersionTableMap
class ProductVersionTableMap extends TableMap
This class defines the structure of the 'product_version' table.
This map class is used by Propel to do runtime db structure discovery. For example, the createSelectSql() method checks the type of a given column used in an ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive (i.e. if it's a text column type).
Traits
Constants
CLASS_NAME |
The (dot-path) name of this class |
DATABASE_NAME |
The default database name for this class |
TABLE_NAME |
The table name for this class |
OM_CLASS |
The related Propel class for this table |
CLASS_DEFAULT |
A class that can be returned by this tableMap |
NUM_COLUMNS |
The total number of columns |
NUM_LAZY_LOAD_COLUMNS |
The number of lazy-loaded columns |
NUM_HYDRATE_COLUMNS |
The number of columns to hydrate (NUMCOLUMNS - NUMLAZYLOADCOLUMNS) |
ID |
the column name for the ID field |
TAX_RULE_ID |
the column name for the TAXRULEID field |
REF |
the column name for the REF field |
VISIBLE |
the column name for the VISIBLE field |
POSITION |
the column name for the POSITION field |
TEMPLATE_ID |
the column name for the TEMPLATE_ID field |
BRAND_ID |
the column name for the BRAND_ID field |
VIRTUAL |
the column name for the VIRTUAL field |
CREATED_AT |
the column name for the CREATED_AT field |
UPDATED_AT |
the column name for the UPDATED_AT field |
VERSION |
the column name for the VERSION field |
VERSION_CREATED_AT |
the column name for the VERSIONCREATEDAT field |
VERSION_CREATED_BY |
the column name for the VERSIONCREATEDBY field |
DEFAULT_STRING_FORMAT |
The default string format for model objects of the related table |
Methods
Initialize the table attributes and columns Relations are not initialized by this method since they are lazy loaded
Build the RelationMap objects for this table relationships
Removes an object from the instance pool.
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.
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.
The class that the tableMap will make instances of.
Populates an object of the default type or an object that inherit from the default.
The returned array will contain objects of the default type or objects that inherit from the default.
Add all the columns needed to create a new object.
Returns the TableMap related to this object.
Add a TableMap instance to the database for this tableMap class.
Performs a DELETE on the database, given a ProductVersion or Criteria object OR a primary key value.
Deletes all rows from the product_version table.
Performs an INSERT on the database, given a ProductVersion or Criteria object.
Details
at line 180
void
initialize()
Initialize the table attributes and columns Relations are not initialized by this method since they are lazy loaded
at line 207
buildRelations()
Build the RelationMap objects for this table relationships
at line 223
static
addInstanceToPool(
ProductVersion $obj,
string $key = null)
Adds an object to the instance pool.
Propel keeps cached copies of objects in an instance pool when they are retrieved from the database. In some cases you may need to explicitly add objects to the cache in order to ensure that the same objects are always returned by find() and findPk() calls.
at line 243
static
removeInstanceFromPool(
mixed $value)
Removes an object from the instance pool.
Propel keeps cached copies of objects in an instance pool when they are retrieved from the database. In some cases -- especially when you override doDelete methods in your stub classes -- you may need to explicitly remove objects from the cache in order to prevent returning objects that no longer exist.
at line 276
static
getPrimaryKeyHashFromRow(
array $row,
int $offset,
string $indexType = TableMap::TYPE_NUM)
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.
For tables with a single-column primary key, that simple pkey value will be returned. For tables with a multi-column primary key, a serialize()d version of the primary key will be returned.
at line 298
static
mixed
getPrimaryKeyFromRow(
array $row,
int $offset,
string $indexType = TableMap::TYPE_NUM)
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.
at line 315
static
string
getOMClass(
boolean $withPrefix = true)
The class that the tableMap will make instances of.
If $withPrefix is true, the returned path uses a dot-path notation which is translated into a path relative to a location on the PHP include_path. (e.g. path.to.MyClass -> 'path/to/MyClass.php')
at line 333
static
array
populateObject(
array $row,
int $offset,
string $indexType = TableMap::TYPE_NUM)
Populates an object of the default type or an object that inherit from the default.
at line 360
static
array
populateObjects(
DataFetcherInterface $dataFetcher)
The returned array will contain objects of the default type or objects that inherit from the default.
at line 396
static
addSelectColumns(
Criteria $criteria,
string $alias = null)
Add all the columns needed to create a new object.
Note: any columns that were marked with lazyLoad="true" in the XML schema will not be added to the select list and only loaded on demand.
at line 436
static
TableMap
getTableMap()
Returns the TableMap related to this object.
This method is not needed for general use but a specific application could have a need.
at line 444
static
buildTableMap()
Add a TableMap instance to the database for this tableMap class.
at line 463
static
int
doDelete(
mixed $values,
ConnectionInterface $con = null)
Performs a DELETE on the database, given a ProductVersion or Criteria object OR a primary key value.
at line 507
static
int
doDeleteAll(
ConnectionInterface $con = null)
Deletes all rows from the product_version table.
at line 521
static
mixed
doInsert(
mixed $criteria,
ConnectionInterface $con = null)
Performs an INSERT on the database, given a ProductVersion or Criteria object.