rapila
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
BaseRoleQuery Class Reference
Inheritance diagram for BaseRoleQuery:
RoleQuery

Public Member Functions

 __construct ($dbName=null, $modelName=null, $modelAlias=null)
 
 findPk ($key, $con=null)
 
 findOneByRoleKey ($key, $con=null)
 
 findPks ($keys, $con=null)
 
 filterByPrimaryKey ($key)
 
 filterByPrimaryKeys ($keys)
 
 filterByRoleKey ($roleKey=null, $comparison=null)
 
 filterByDescription ($description=null, $comparison=null)
 
 filterByCreatedAt ($createdAt=null, $comparison=null)
 
 filterByUpdatedAt ($updatedAt=null, $comparison=null)
 
 filterByCreatedBy ($createdBy=null, $comparison=null)
 
 filterByUpdatedBy ($updatedBy=null, $comparison=null)
 
 filterByUserRelatedByCreatedBy ($user, $comparison=null)
 
 joinUserRelatedByCreatedBy ($relationAlias=null, $joinType=Criteria::LEFT_JOIN)
 
 useUserRelatedByCreatedByQuery ($relationAlias=null, $joinType=Criteria::LEFT_JOIN)
 
 filterByUserRelatedByUpdatedBy ($user, $comparison=null)
 
 joinUserRelatedByUpdatedBy ($relationAlias=null, $joinType=Criteria::LEFT_JOIN)
 
 useUserRelatedByUpdatedByQuery ($relationAlias=null, $joinType=Criteria::LEFT_JOIN)
 
 filterByGroupRole ($groupRole, $comparison=null)
 
 joinGroupRole ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 useGroupRoleQuery ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 filterByUserRole ($userRole, $comparison=null)
 
 joinUserRole ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 useUserRoleQuery ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 filterByRight ($right, $comparison=null)
 
 joinRight ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 useRightQuery ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 prune ($role=null)
 
 recentlyUpdated ($nbDays=7)
 
 lastUpdatedFirst ()
 
 firstUpdatedFirst ()
 
 recentlyCreated ($nbDays=7)
 
 lastCreatedFirst ()
 
 firstCreatedFirst ()
 
 findMostRecentUpdate ($bAsTimestamp=false)
 
 filterByPKArray ($pkArray)
 
 filterByPKString ($pkString)
 

Static Public Member Functions

static create ($modelAlias=null, $criteria=null)
 

Protected Member Functions

 findPkSimple ($key, $con)
 
 findPkComplex ($key, $con)
 

Constructor & Destructor Documentation

BaseRoleQuery::__construct (   $dbName = null,
  $modelName = null,
  $modelAlias = null 
)

Initializes internal state of BaseRoleQuery object.

Parameters
string$dbNameThe dabase name
string$modelNameThe phpName of a model, e.g. 'Book'
string$modelAliasThe alias for the model in this query, e.g. 'b'

Member Function Documentation

static BaseRoleQuery::create (   $modelAlias = null,
  $criteria = null 
)
static

Returns a new RoleQuery object.

Parameters
string$modelAliasThe alias of a model in the query
RoleQuery | Criteria$criteriaOptional Criteria to build the query from
Returns
RoleQuery
BaseRoleQuery::filterByCreatedAt (   $createdAt = null,
  $comparison = null 
)

Filter the query on the created_at column

Example usage: $query->filterByCreatedAt('2011-03-14'); // WHERE created_at = '2011-03-14' $query->filterByCreatedAt('now'); // WHERE created_at = '2011-03-14' $query->filterByCreatedAt(array('max' => 'yesterday')); // WHERE created_at < '2011-03-13'

Parameters
mixed$createdAtThe value to use as filter. Values can be integers (unix timestamps), DateTime objects, or strings. Empty strings are treated as NULL. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::filterByCreatedBy (   $createdBy = null,
  $comparison = null 
)

Filter the query on the created_by column

Example usage: $query->filterByCreatedBy(1234); // WHERE created_by = 1234 $query->filterByCreatedBy(array(12, 34)); // WHERE created_by IN (12, 34) $query->filterByCreatedBy(array('min' => 12)); // WHERE created_by >= 12 $query->filterByCreatedBy(array('max' => 12)); // WHERE created_by <= 12

See also
filterByUserRelatedByCreatedBy()
Parameters
mixed$createdByThe value to use as filter. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::filterByDescription (   $description = null,
  $comparison = null 
)

Filter the query on the description column

Example usage: $query->filterByDescription('fooValue'); // WHERE description = 'fooValue' $query->filterByDescription('fooValue'); // WHERE description LIKE 'fooValue'

Parameters
string$descriptionThe value to use as filter. Accepts wildcards (* and % trigger a LIKE)
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::filterByGroupRole (   $groupRole,
  $comparison = null 
)

Filter the query by a related GroupRole object

Parameters
GroupRole | PropelObjectCollection$groupRolethe related object to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
RoleQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseRoleQuery::filterByPrimaryKey (   $key)

Filter the query by primary key

Parameters
mixed$keyPrimary key to use for the query
Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::filterByPrimaryKeys (   $keys)

Filter the query by a list of primary keys

Parameters
array$keysThe list of primary key to use for the query
Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::filterByRight (   $right,
  $comparison = null 
)

Filter the query by a related Right object

Parameters
Right | PropelObjectCollection$rightthe related object to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
RoleQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseRoleQuery::filterByRoleKey (   $roleKey = null,
  $comparison = null 
)

Filter the query on the role_key column

Example usage: $query->filterByRoleKey('fooValue'); // WHERE role_key = 'fooValue' $query->filterByRoleKey('fooValue'); // WHERE role_key LIKE 'fooValue'

Parameters
string$roleKeyThe value to use as filter. Accepts wildcards (* and % trigger a LIKE)
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::filterByUpdatedAt (   $updatedAt = null,
  $comparison = null 
)

Filter the query on the updated_at column

Example usage: $query->filterByUpdatedAt('2011-03-14'); // WHERE updated_at = '2011-03-14' $query->filterByUpdatedAt('now'); // WHERE updated_at = '2011-03-14' $query->filterByUpdatedAt(array('max' => 'yesterday')); // WHERE updated_at < '2011-03-13'

Parameters
mixed$updatedAtThe value to use as filter. Values can be integers (unix timestamps), DateTime objects, or strings. Empty strings are treated as NULL. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::filterByUpdatedBy (   $updatedBy = null,
  $comparison = null 
)

Filter the query on the updated_by column

Example usage: $query->filterByUpdatedBy(1234); // WHERE updated_by = 1234 $query->filterByUpdatedBy(array(12, 34)); // WHERE updated_by IN (12, 34) $query->filterByUpdatedBy(array('min' => 12)); // WHERE updated_by >= 12 $query->filterByUpdatedBy(array('max' => 12)); // WHERE updated_by <= 12

See also
filterByUserRelatedByUpdatedBy()
Parameters
mixed$updatedByThe value to use as filter. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::filterByUserRelatedByCreatedBy (   $user,
  $comparison = null 
)

Filter the query by a related User object

Parameters
User | PropelObjectCollection$userThe related object(s) to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
RoleQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseRoleQuery::filterByUserRelatedByUpdatedBy (   $user,
  $comparison = null 
)

Filter the query by a related User object

Parameters
User | PropelObjectCollection$userThe related object(s) to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
RoleQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseRoleQuery::filterByUserRole (   $userRole,
  $comparison = null 
)

Filter the query by a related UserRole object

Parameters
UserRole | PropelObjectCollection$userRolethe related object to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
RoleQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseRoleQuery::findOneByRoleKey (   $key,
  $con = null 
)

Alias of findPk to use instance pooling

Parameters
mixed$keyPrimary key to use for the query
PropelPDO$conA connection object
Returns
Role A model object, or null if the key is not found
Exceptions
PropelException
BaseRoleQuery::findPk (   $key,
  $con = null 
)

Find object by primary key. Propel uses the instance pool to skip the database if the object exists. Go fast if the query is untouched.

$obj = $c->findPk(12, $con);

Parameters
mixed$keyPrimary key to use for the query
PropelPDO$conan optional connection object
Returns
Role|Role[]|mixed the result, formatted by the current formatter
BaseRoleQuery::findPkComplex (   $key,
  $con 
)
protected

Find object by primary key.

Parameters
mixed$keyPrimary key to use for the query
PropelPDO$conA connection object
Returns
Role|Role[]|mixed the result, formatted by the current formatter
BaseRoleQuery::findPks (   $keys,
  $con = null 
)

Find objects by primary key $objs = $c->findPks(array(12, 56, 832), $con);

Parameters
array$keysPrimary keys to use for the query
PropelPDO$conan optional connection object
Returns
PropelObjectCollection|Role[]|mixed the list of results, formatted by the current formatter
BaseRoleQuery::findPkSimple (   $key,
  $con 
)
protected

Find object by primary key using raw SQL to go fast. Bypass doSelect() and the object formatter by using generated code.

Parameters
mixed$keyPrimary key to use for the query
PropelPDO$conA connection object
Returns
Role A model object, or null if the key is not found
Exceptions
PropelException
BaseRoleQuery::firstCreatedFirst ( )

Order by create date asc

Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::firstUpdatedFirst ( )

Order by update date asc

Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::joinGroupRole (   $relationAlias = null,
  $joinType = Criteria::INNER_JOIN 
)

Adds a JOIN clause to the query using the GroupRole relation

Parameters
string$relationAliasoptional alias for the relation
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::joinRight (   $relationAlias = null,
  $joinType = Criteria::INNER_JOIN 
)

Adds a JOIN clause to the query using the Right relation

Parameters
string$relationAliasoptional alias for the relation
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::joinUserRelatedByCreatedBy (   $relationAlias = null,
  $joinType = Criteria::LEFT_JOIN 
)

Adds a JOIN clause to the query using the UserRelatedByCreatedBy relation

Parameters
string$relationAliasoptional alias for the relation
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::joinUserRelatedByUpdatedBy (   $relationAlias = null,
  $joinType = Criteria::LEFT_JOIN 
)

Adds a JOIN clause to the query using the UserRelatedByUpdatedBy relation

Parameters
string$relationAliasoptional alias for the relation
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::joinUserRole (   $relationAlias = null,
  $joinType = Criteria::INNER_JOIN 
)

Adds a JOIN clause to the query using the UserRole relation

Parameters
string$relationAliasoptional alias for the relation
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::lastCreatedFirst ( )

Order by create date desc

Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::lastUpdatedFirst ( )

Order by update date desc

Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::prune (   $role = null)

Exclude object from result

Parameters
Role$roleObject to remove from the list of results
Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::recentlyCreated (   $nbDays = 7)

Filter by the latest created

Parameters
int$nbDaysMaximum age of in days
Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::recentlyUpdated (   $nbDays = 7)

Filter by the latest updated

Parameters
int$nbDaysMaximum age of the latest update in days
Returns
RoleQuery The current query, for fluid interface
BaseRoleQuery::useGroupRoleQuery (   $relationAlias = null,
  $joinType = Criteria::INNER_JOIN 
)

Use the GroupRole relation GroupRole object

See also
useQuery()
Parameters
string$relationAliasoptional alias for the relation, to be used as main alias in the secondary query
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
GroupRoleQuery A secondary query class using the current class as primary query
BaseRoleQuery::useRightQuery (   $relationAlias = null,
  $joinType = Criteria::INNER_JOIN 
)

Use the Right relation Right object

See also
useQuery()
Parameters
string$relationAliasoptional alias for the relation, to be used as main alias in the secondary query
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
RightQuery A secondary query class using the current class as primary query
BaseRoleQuery::useUserRelatedByCreatedByQuery (   $relationAlias = null,
  $joinType = Criteria::LEFT_JOIN 
)

Use the UserRelatedByCreatedBy relation User object

See also
useQuery()
Parameters
string$relationAliasoptional alias for the relation, to be used as main alias in the secondary query
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
UserQuery A secondary query class using the current class as primary query
BaseRoleQuery::useUserRelatedByUpdatedByQuery (   $relationAlias = null,
  $joinType = Criteria::LEFT_JOIN 
)

Use the UserRelatedByUpdatedBy relation User object

See also
useQuery()
Parameters
string$relationAliasoptional alias for the relation, to be used as main alias in the secondary query
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
UserQuery A secondary query class using the current class as primary query
BaseRoleQuery::useUserRoleQuery (   $relationAlias = null,
  $joinType = Criteria::INNER_JOIN 
)

Use the UserRole relation UserRole object

See also
useQuery()
Parameters
string$relationAliasoptional alias for the relation, to be used as main alias in the secondary query
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
UserRoleQuery A secondary query class using the current class as primary query

The documentation for this class was generated from the following file: