![]() |
rapila
|
Static Public Member Functions | |
static | translateFieldName ($name, $fromType, $toType) |
static | getFieldNames ($type=BasePeer::TYPE_PHPNAME) |
static | alias ($alias, $column) |
static | addSelectColumns (Criteria $criteria, $alias=null) |
static | doCount (Criteria $criteria, $distinct=false, PropelPDO $con=null) |
static | doSelectOne (Criteria $criteria, PropelPDO $con=null) |
static | doSelect (Criteria $criteria, PropelPDO $con=null) |
static | doSelectStmt (Criteria $criteria, PropelPDO $con=null) |
static | addInstanceToPool ($obj, $key=null) |
static | removeInstanceFromPool ($value) |
static | getInstanceFromPool ($key) |
static | clearInstancePool ($and_clear_all_references=false) |
static | clearRelatedInstancePool () |
static | getPrimaryKeyHashFromRow ($row, $startcol=0) |
static | getPrimaryKeyFromRow ($row, $startcol=0) |
static | populateObjects (PDOStatement $stmt) |
static | populateObject ($row, $startcol=0) |
static | doCountJoinUserRelatedByUserId (Criteria $criteria, $distinct=false, PropelPDO $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doCountJoinRole (Criteria $criteria, $distinct=false, PropelPDO $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doCountJoinUserRelatedByCreatedBy (Criteria $criteria, $distinct=false, PropelPDO $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doCountJoinUserRelatedByUpdatedBy (Criteria $criteria, $distinct=false, PropelPDO $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doSelectJoinUserRelatedByUserId (Criteria $criteria, $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doSelectJoinRole (Criteria $criteria, $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doSelectJoinUserRelatedByCreatedBy (Criteria $criteria, $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doSelectJoinUserRelatedByUpdatedBy (Criteria $criteria, $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doCountJoinAll (Criteria $criteria, $distinct=false, PropelPDO $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doSelectJoinAll (Criteria $criteria, $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doCountJoinAllExceptUserRelatedByUserId (Criteria $criteria, $distinct=false, PropelPDO $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doCountJoinAllExceptRole (Criteria $criteria, $distinct=false, PropelPDO $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doCountJoinAllExceptUserRelatedByCreatedBy (Criteria $criteria, $distinct=false, PropelPDO $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doCountJoinAllExceptUserRelatedByUpdatedBy (Criteria $criteria, $distinct=false, PropelPDO $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doSelectJoinAllExceptUserRelatedByUserId (Criteria $criteria, $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doSelectJoinAllExceptRole (Criteria $criteria, $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doSelectJoinAllExceptUserRelatedByCreatedBy (Criteria $criteria, $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | doSelectJoinAllExceptUserRelatedByUpdatedBy (Criteria $criteria, $con=null, $join_behavior=Criteria::LEFT_JOIN) |
static | getTableMap () |
static | buildTableMap () |
static | getOMClass ($row=0, $colnum=0) |
static | doInsert ($values, PropelPDO $con=null) |
static | doUpdate ($values, PropelPDO $con=null) |
static | doDeleteAll (PropelPDO $con=null) |
static | doDelete ($values, PropelPDO $con=null) |
static | doValidate ($obj, $cols=null) |
static | retrieveByPK ($user_id, $role_key, PropelPDO $con=null) |
static | ignoreRights ($bIgnore=true) |
static | isIgnoringRights () |
static | setRightsUser ($oUser=false) |
static | getRightsUser ($oUser=false) |
static | mayOperateOn ($oUser, $mObject, $sOperation) |
static | mayOperateOnOwn ($oUser, $mObject, $sOperation) |
Public Attributes | |
const | DATABASE_NAME = 'rapila' |
const | TABLE_NAME = 'user_roles' |
const | OM_CLASS = 'UserRole' |
const | TM_CLASS = 'UserRoleTableMap' |
const | NUM_COLUMNS = 6 |
const | NUM_LAZY_LOAD_COLUMNS = 0 |
const | NUM_HYDRATE_COLUMNS = 6 |
const | USER_ID = 'user_roles.user_id' |
const | ROLE_KEY = 'user_roles.role_key' |
const | CREATED_AT = 'user_roles.created_at' |
const | UPDATED_AT = 'user_roles.updated_at' |
const | CREATED_BY = 'user_roles.created_by' |
const | UPDATED_BY = 'user_roles.updated_by' |
const | DEFAULT_STRING_FORMAT = 'YAML' |
Static Public Attributes | |
static | $instances = array() |
Static Protected Attributes | |
static | $fieldNames |
static | $fieldKeys |
|
static |
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 – especially when you override doSelect*() methods in your stub classes – you may need to explicitly add objects to the cache in order to ensure that the same objects are always returned by doSelect*() and retrieveByPK*() calls.
|
static |
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.
Criteria | $criteria | object containing the columns to add. |
string | $alias | optional table alias |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Convenience method which changes table.column to alias.column.
Using this method you can maintain SQL abstraction while using column aliases. $c->addAlias("alias1", TablePeer::TABLE_NAME); $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
string | $alias | The alias for the current table. |
string | $column | The column name for current table. (i.e. UserRolePeer::COLUMN_NAME). |
|
static |
Add a TableMap instance to the database for this peer class.
|
static |
Clear the instance pool.
|
static |
Method to invalidate the instance pool of all tables related to user_roles by a foreign key with ON DELETE CASCADE
|
static |
Returns the number of rows matching criteria.
Criteria | $criteria | |
boolean | $distinct | Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. |
PropelPDO | $con |
|
static |
Returns the number of rows matching criteria, joining all related tables
Criteria | $criteria | |
boolean | $distinct | Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
|
static |
Returns the number of rows matching criteria, joining the related Role table
Criteria | $criteria | |
boolean | $distinct | Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
|
static |
Returns the number of rows matching criteria, joining the related UserRelatedByCreatedBy table
Criteria | $criteria | |
boolean | $distinct | Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
|
static |
Returns the number of rows matching criteria, joining the related UserRelatedByUpdatedBy table
Criteria | $criteria | |
boolean | $distinct | Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
|
static |
Returns the number of rows matching criteria, joining the related UserRelatedByUserId table
Criteria | $criteria | |
boolean | $distinct | Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
|
static |
Returns the number of rows matching criteria, joining the related Role table
Criteria | $criteria | |
boolean | $distinct | Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
|
static |
Returns the number of rows matching criteria, joining the related UserRelatedByCreatedBy table
Criteria | $criteria | |
boolean | $distinct | Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
|
static |
Returns the number of rows matching criteria, joining the related UserRelatedByUpdatedBy table
Criteria | $criteria | |
boolean | $distinct | Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
|
static |
Returns the number of rows matching criteria, joining the related UserRelatedByUserId table
Criteria | $criteria | |
boolean | $distinct | Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
|
static |
Performs a DELETE on the database, given a UserRole or Criteria object OR a primary key value.
mixed | $values | Criteria or UserRole object or primary key or array of primary keys which is used to create the DELETE statement |
PropelPDO | $con | the connection to use |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Deletes all rows from the user_roles table.
PropelPDO | $con | the connection to use |
PropelException |
|
static |
Performs an INSERT on the database, given a UserRole or Criteria object.
mixed | $values | Criteria or UserRole object containing data that is used to create the INSERT statement. |
PropelPDO | $con | the PropelPDO connection to use |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Selects several row from the DB.
Criteria | $criteria | The Criteria object used to build the SELECT statement. |
PropelPDO | $con |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Selects a collection of UserRole objects pre-filled with all related objects.
Criteria | $criteria | |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Selects a collection of UserRole objects pre-filled with all related objects except Role.
Criteria | $criteria | |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Selects a collection of UserRole objects pre-filled with all related objects except UserRelatedByCreatedBy.
Criteria | $criteria | |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Selects a collection of UserRole objects pre-filled with all related objects except UserRelatedByUpdatedBy.
Criteria | $criteria | |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Selects a collection of UserRole objects pre-filled with all related objects except UserRelatedByUserId.
Criteria | $criteria | |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Selects a collection of UserRole objects pre-filled with their Role objects.
Criteria | $criteria | |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Selects a collection of UserRole objects pre-filled with their User objects.
Criteria | $criteria | |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Selects a collection of UserRole objects pre-filled with their User objects.
Criteria | $criteria | |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Selects a collection of UserRole objects pre-filled with their User objects.
Criteria | $criteria | |
PropelPDO | $con | |
String | $join_behavior | the type of joins to use, defaults to Criteria::LEFT_JOIN |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Selects one object from the DB.
Criteria | $criteria | object used to create the SELECT statement. |
PropelPDO | $con |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement.
Use this method directly if you want to work with an executed statement directly (for example to perform your own object hydration).
Criteria | $criteria | The Criteria object used to build the SELECT statement. |
PropelPDO | $con | The connection to use |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Performs an UPDATE on the database, given a UserRole or Criteria object.
mixed | $values | Criteria or UserRole object containing data that is used to create the UPDATE statement. |
PropelPDO | $con | The connection to use (specify PropelPDO connection object to exert more control over transactions). |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Validates all modified columns of given UserRole object. If parameter $columns is either a single column name or an array of column names than only those columns are validated.
NOTICE: This does not apply to primary or foreign keys for now.
UserRole | $obj | The object to validate. |
mixed | $cols | Column name or array of column names. |
|
static |
Returns an array of field names.
string | $type | The type of fieldnames to return: One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM |
PropelException | - if the type is not valid. |
|
static |
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.
string | $key | The key ( |
|
static |
The class that the Peer will make instances of.
|
static |
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.
array | $row | PropelPDO resultset row. |
int | $startcol | The 0-based offset for reading from the resultset row. |
|
static |
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.
array | $row | PropelPDO resultset row. |
int | $startcol | The 0-based offset for reading from the resultset row. |
|
static |
Returns the TableMap related to this peer. This method is not needed for general use but a specific application could have a need.
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
Populates an object of the default type or an object that inherit from the default.
array | $row | PropelPDO resultset row. |
int | $startcol | The 0-based offset for reading from the resultset row. |
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
The returned array will contain objects of the default type or objects that inherit from the default.
PropelException | Any exceptions caught during processing will be rethrown wrapped into a PropelException. |
|
static |
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.
mixed | $value | A UserRole object or a primary key value. |
PropelException | - if the value is invalid. |
|
static |
Retrieve object using using composite pkey values.
int | $user_id | |
string | $role_key | |
PropelPDO | $con |
|
static |
Translates a fieldname to another type
string | $name | field name |
string | $fromType | One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM |
string | $toType | One of the class type constants |
PropelException | - if the specified name could not be found in the fieldname mappings. |
|
staticprotected |
holds an array of keys for quick access to the fieldnames array
first dimension keys are the type constants e.g. UserRolePeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
staticprotected |
holds an array of fieldnames
first dimension keys are the type constants e.g. UserRolePeer::$fieldNames[UserRolePeer::TYPE_PHPNAME][0] = 'Id'
const BaseUserRolePeer::CREATED_AT = 'user_roles.created_at' |
the column name for the created_at field
const BaseUserRolePeer::CREATED_BY = 'user_roles.created_by' |
the column name for the created_by field
const BaseUserRolePeer::DATABASE_NAME = 'rapila' |
the default database name for this class
const BaseUserRolePeer::DEFAULT_STRING_FORMAT = 'YAML' |
The default string format for model objects of the related table
const BaseUserRolePeer::NUM_COLUMNS = 6 |
The total number of columns.
const BaseUserRolePeer::NUM_HYDRATE_COLUMNS = 6 |
The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS)
const BaseUserRolePeer::NUM_LAZY_LOAD_COLUMNS = 0 |
The number of lazy-loaded columns.
const BaseUserRolePeer::OM_CLASS = 'UserRole' |
the related Propel class for this table
const BaseUserRolePeer::ROLE_KEY = 'user_roles.role_key' |
the column name for the role_key field
const BaseUserRolePeer::TABLE_NAME = 'user_roles' |
the table name for this class
const BaseUserRolePeer::TM_CLASS = 'UserRoleTableMap' |
the related TableMap class for this table
const BaseUserRolePeer::UPDATED_AT = 'user_roles.updated_at' |
the column name for the updated_at field
const BaseUserRolePeer::UPDATED_BY = 'user_roles.updated_by' |
the column name for the updated_by field
const BaseUserRolePeer::USER_ID = 'user_roles.user_id' |
the column name for the user_id field