class ProfileResourceQuery extends ModelCriteria

Base class that represents a query for the 'profile_resource' table.

Methods

__construct( string $dbName = 'thelia', string $modelName = '\\Thelia\\Model\\ProfileResource', string $modelAlias = null)

Initializes internal state of \Thelia\Model\Base\ProfileResourceQuery object.

create( string $modelAlias = null, Criteria $criteria = null)

Returns a new ChildProfileResourceQuery object.

ProfileResource|array|mixed
findPk($key, $con = null)

Find object by primary key.

ObjectCollection|array|mixed
findPks( array $keys, ConnectionInterface $con = null)

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

filterByPrimaryKey( mixed $key)

Filter the query by primary key

filterByPrimaryKeys( array $keys)

Filter the query by a list of primary keys

filterByProfileId( mixed $profileId = null, string $comparison = null)

Filter the query on the profile_id column

filterByResourceId( mixed $resourceId = null, string $comparison = null)

Filter the query on the resource_id column

filterByAccess( mixed $access = null, string $comparison = null)

Filter the query on the access column

filterByCreatedAt( mixed $createdAt = null, string $comparison = null)

Filter the query on the created_at column

filterByUpdatedAt( mixed $updatedAt = null, string $comparison = null)

Filter the query on the updated_at column

filterByProfile( Profile|ObjectCollection $profile, string $comparison = null)

Filter the query by a related \Thelia\Model\Profile object

joinProfile( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the Profile relation

useProfileQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the Profile relation Profile object

filterByResource( Resource|ObjectCollection $resource, string $comparison = null)

Filter the query by a related \Thelia\Model\Resource object

joinResource( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the Resource relation

useResourceQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the Resource relation Resource object

prune( ProfileResource $profileResource = null)

Exclude object from result

int
doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the profile_resource table.

int
delete( ConnectionInterface $con = null)

Performs a DELETE on the database, given a ChildProfileResource or Criteria object OR a primary key value.

recentlyUpdated( int $nbDays = 7)

Filter by the latest updated

recentlyCreated( int $nbDays = 7)

Filter by the latest created

lastUpdatedFirst()

Order by update date desc

firstUpdatedFirst()

Order by update date asc

lastCreatedFirst()

Order by create date desc

firstCreatedFirst()

Order by create date asc

ChildProfileResourceQuery
orderByProfileId($order = Criteria::ASC)

Order by the profile_id column

ChildProfileResourceQuery
orderByResourceId($order = Criteria::ASC)

Order by the resource_id column

ChildProfileResourceQuery
orderByAccess($order = Criteria::ASC)

Order by the access column

ChildProfileResourceQuery
orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

ChildProfileResourceQuery
orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

ChildProfileResourceQuery
groupByProfileId()

Group by the profile_id column

ChildProfileResourceQuery
groupByResourceId()

Group by the resource_id column

ChildProfileResourceQuery
groupByAccess()

Group by the access column

ChildProfileResourceQuery
groupByCreatedAt()

Group by the created_at column

ChildProfileResourceQuery
groupByUpdatedAt()

Group by the updated_at column

ChildProfileResourceQuery
leftJoin($relation)

Adds a LEFT JOIN clause to the query

ChildProfileResourceQuery
rightJoin($relation)

Adds a RIGHT JOIN clause to the query

ChildProfileResourceQuery
innerJoin($relation)

Adds a INNER JOIN clause to the query

ChildProfileResourceQuery
leftJoinProfile($relationAlias = null)

Adds a LEFT JOIN clause to the query using the Profile relation

ChildProfileResourceQuery
rightJoinProfile($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the Profile relation

ChildProfileResourceQuery
innerJoinProfile($relationAlias = null)

Adds a INNER JOIN clause to the query using the Profile relation

ChildProfileResourceQuery
leftJoinResource($relationAlias = null)

Adds a LEFT JOIN clause to the query using the Resource relation

ChildProfileResourceQuery
rightJoinResource($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the Resource relation

ChildProfileResourceQuery
innerJoinResource($relationAlias = null)

Adds a INNER JOIN clause to the query using the Resource relation

ChildProfileResource
findOne( ConnectionInterface $con = null)

Return the first ChildProfileResource matching the query

ChildProfileResource
findOneOrCreate( ConnectionInterface $con = null)

Return the first ChildProfileResource matching the query, or a new ChildProfileResource object populated from the query conditions when no match is found

ChildProfileResource
findOneByProfileId( int $profile_id)

Return the first ChildProfileResource filtered by the profile_id column

ChildProfileResource
findOneByResourceId( int $resource_id)

Return the first ChildProfileResource filtered by the resource_id column

ChildProfileResource
findOneByAccess( int $access)

Return the first ChildProfileResource filtered by the access column

ChildProfileResource
findOneByCreatedAt( string $created_at)

Return the first ChildProfileResource filtered by the created_at column

ChildProfileResource
findOneByUpdatedAt( string $updated_at)

Return the first ChildProfileResource filtered by the updated_at column

array
findByProfileId( int $profile_id)

Return ChildProfileResource objects filtered by the profile_id column

array
findByResourceId( int $resource_id)

Return ChildProfileResource objects filtered by the resource_id column

array
findByAccess( int $access)

Return ChildProfileResource objects filtered by the access column

array
findByCreatedAt( string $created_at)

Return ChildProfileResource objects filtered by the created_at column

array
findByUpdatedAt( string $updated_at)

Return ChildProfileResource objects filtered by the updated_at column

Details

at line 74
__construct( string $dbName = 'thelia', string $modelName = '\\Thelia\\Model\\ProfileResource', string $modelAlias = null)

Initializes internal state of \Thelia\Model\Base\ProfileResourceQuery object.

Parameters

string $dbName The database name
string $modelName The phpName of a model, e.g. 'Book'
string $modelAlias The alias for the model in this query, e.g. 'b'

at line 87
static ProfileResourceQuery create( string $modelAlias = null, Criteria $criteria = null)

Returns a new ChildProfileResourceQuery object.

Parameters

string $modelAlias The alias of a model in the query
Criteria $criteria Optional Criteria to build the query from

Return Value

ProfileResourceQuery

at line 117
ProfileResource|array|mixed 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(array(12, 34), $con);

Parameters

$key
$con

Return Value

ProfileResource|array|mixed the result, formatted by the current formatter

at line 200
ObjectCollection|array|mixed findPks( array $keys, ConnectionInterface $con = null)

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

Parameters

array $keys Primary keys to use for the query
ConnectionInterface $con an optional connection object

Return Value

ObjectCollection|array|mixed the list of results, formatted by the current formatter

at line 221
ProfileResourceQuery filterByPrimaryKey( mixed $key)

Filter the query by primary key

Parameters

mixed $key Primary key to use for the query

Return Value

ProfileResourceQuery The current query, for fluid interface

at line 236
ProfileResourceQuery filterByPrimaryKeys( array $keys)

Filter the query by a list of primary keys

Parameters

array $keys The list of primary key to use for the query

Return Value

ProfileResourceQuery The current query, for fluid interface

at line 271
ProfileResourceQuery filterByProfileId( mixed $profileId = null, string $comparison = null)

Filter the query on the profile_id column

Example usage: $query->filterByProfileId(1234); // WHERE profileid = 1234 $query->filterByProfileId(array(12, 34)); // WHERE profileid IN (12, 34) $query->filterByProfileId(array('min' => 12)); // WHERE profile_id > 12

Parameters

mixed $profileId The 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 $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ProfileResourceQuery The current query, for fluid interface

See also

filterByProfile()

at line 314
ProfileResourceQuery filterByResourceId( mixed $resourceId = null, string $comparison = null)

Filter the query on the resource_id column

Example usage: $query->filterByResourceId(1234); // WHERE resourceid = 1234 $query->filterByResourceId(array(12, 34)); // WHERE resourceid IN (12, 34) $query->filterByResourceId(array('min' => 12)); // WHERE resource_id > 12

Parameters

mixed $resourceId The 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 $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ProfileResourceQuery The current query, for fluid interface

See also

filterByResource()

at line 355
ProfileResourceQuery filterByAccess( mixed $access = null, string $comparison = null)

Filter the query on the access column

Example usage: $query->filterByAccess(1234); // WHERE access = 1234 $query->filterByAccess(array(12, 34)); // WHERE access IN (12, 34) $query->filterByAccess(array('min' => 12)); // WHERE access > 12

Parameters

mixed $access The 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 $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ProfileResourceQuery The current query, for fluid interface

at line 398
ProfileResourceQuery filterByCreatedAt( mixed $createdAt = null, string $comparison = null)

Filter the query on the created_at column

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

Parameters

mixed $createdAt The 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 $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ProfileResourceQuery The current query, for fluid interface

at line 441
ProfileResourceQuery filterByUpdatedAt( mixed $updatedAt = null, string $comparison = null)

Filter the query on the updated_at column

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

Parameters

mixed $updatedAt The 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 $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ProfileResourceQuery The current query, for fluid interface

at line 472
ProfileResourceQuery filterByProfile( Profile|ObjectCollection $profile, string $comparison = null)

Filter the query by a related \Thelia\Model\Profile object

Parameters

Profile|ObjectCollection $profile The related object(s) to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ProfileResourceQuery The current query, for fluid interface

at line 497
ProfileResourceQuery joinProfile( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the Profile relation

Parameters

string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

ProfileResourceQuery The current query, for fluid interface

at line 532
ProfileQuery useProfileQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the Profile relation Profile object

Parameters

string $relationAlias optional alias for the relation, to be used as main alias in the secondary query
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

ProfileQuery A secondary query class using the current class as primary query

See also

useQuery()

at line 547
ProfileResourceQuery filterByResource( Resource|ObjectCollection $resource, string $comparison = null)

Filter the query by a related \Thelia\Model\Resource object

Parameters

Resource|ObjectCollection $resource The related object(s) to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ProfileResourceQuery The current query, for fluid interface

at line 572
ProfileResourceQuery joinResource( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the Resource relation

Parameters

string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

ProfileResourceQuery The current query, for fluid interface

at line 607
ResourceQuery useResourceQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the Resource relation Resource object

Parameters

string $relationAlias optional alias for the relation, to be used as main alias in the secondary query
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

ResourceQuery A secondary query class using the current class as primary query

See also

useQuery()

at line 621
ProfileResourceQuery prune( ProfileResource $profileResource = null)

Exclude object from result

Parameters

ProfileResource $profileResource Object to remove from the list of results

Return Value

ProfileResourceQuery The current query, for fluid interface

at line 638
int doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the profile_resource table.

Parameters

ConnectionInterface $con the connection to use

Return Value

int The number of affected rows (if supported by underlying database driver).

at line 675
int delete( ConnectionInterface $con = null)

Performs a DELETE on the database, given a ChildProfileResource or Criteria object OR a primary key value.

Parameters

ConnectionInterface $con

Return Value

int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows if supported by native driver or if emulated using Propel.

Exceptions

PropelException Any exceptions caught during processing will be rethrown wrapped into a PropelException.

at line 716
ProfileResourceQuery recentlyUpdated( int $nbDays = 7)

Filter by the latest updated

Parameters

int $nbDays Maximum age of the latest update in days

Return Value

ProfileResourceQuery The current query, for fluid interface

at line 728
ProfileResourceQuery recentlyCreated( int $nbDays = 7)

Filter by the latest created

Parameters

int $nbDays Maximum age of in days

Return Value

ProfileResourceQuery The current query, for fluid interface

at line 738
ProfileResourceQuery lastUpdatedFirst()

Order by update date desc

Return Value

ProfileResourceQuery The current query, for fluid interface

at line 748
ProfileResourceQuery firstUpdatedFirst()

Order by update date asc

Return Value

ProfileResourceQuery The current query, for fluid interface

at line 758
ProfileResourceQuery lastCreatedFirst()

Order by create date desc

Return Value

ProfileResourceQuery The current query, for fluid interface

at line 768
ProfileResourceQuery firstCreatedFirst()

Order by create date asc

Return Value

ProfileResourceQuery The current query, for fluid interface

at line 64
ChildProfileResourceQuery orderByProfileId($order = Criteria::ASC)

Order by the profile_id column

Parameters

$order

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery orderByResourceId($order = Criteria::ASC)

Order by the resource_id column

Parameters

$order

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery orderByAccess($order = Criteria::ASC)

Order by the access column

Parameters

$order

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

Parameters

$order

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

Parameters

$order

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery groupByProfileId()

Group by the profile_id column

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery groupByResourceId()

Group by the resource_id column

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery groupByAccess()

Group by the access column

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery groupByCreatedAt()

Group by the created_at column

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery groupByUpdatedAt()

Group by the updated_at column

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery leftJoin($relation)

Adds a LEFT JOIN clause to the query

Parameters

$relation

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery rightJoin($relation)

Adds a RIGHT JOIN clause to the query

Parameters

$relation

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery innerJoin($relation)

Adds a INNER JOIN clause to the query

Parameters

$relation

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery leftJoinProfile($relationAlias = null)

Adds a LEFT JOIN clause to the query using the Profile relation

Parameters

$relationAlias

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery rightJoinProfile($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the Profile relation

Parameters

$relationAlias

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery innerJoinProfile($relationAlias = null)

Adds a INNER JOIN clause to the query using the Profile relation

Parameters

$relationAlias

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery leftJoinResource($relationAlias = null)

Adds a LEFT JOIN clause to the query using the Resource relation

Parameters

$relationAlias

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery rightJoinResource($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the Resource relation

Parameters

$relationAlias

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResourceQuery innerJoinResource($relationAlias = null)

Adds a INNER JOIN clause to the query using the Resource relation

Parameters

$relationAlias

Return Value

ChildProfileResourceQuery

at line 64
ChildProfileResource findOne( ConnectionInterface $con = null)

Return the first ChildProfileResource matching the query

Parameters

ConnectionInterface $con

Return Value

ChildProfileResource

at line 64
ChildProfileResource findOneOrCreate( ConnectionInterface $con = null)

Return the first ChildProfileResource matching the query, or a new ChildProfileResource object populated from the query conditions when no match is found

Parameters

ConnectionInterface $con

Return Value

ChildProfileResource

at line 64
ChildProfileResource findOneByProfileId( int $profile_id)

Return the first ChildProfileResource filtered by the profile_id column

Parameters

int $profile_id

Return Value

ChildProfileResource

at line 64
ChildProfileResource findOneByResourceId( int $resource_id)

Return the first ChildProfileResource filtered by the resource_id column

Parameters

int $resource_id

Return Value

ChildProfileResource

at line 64
ChildProfileResource findOneByAccess( int $access)

Return the first ChildProfileResource filtered by the access column

Parameters

int $access

Return Value

ChildProfileResource

at line 64
ChildProfileResource findOneByCreatedAt( string $created_at)

Return the first ChildProfileResource filtered by the created_at column

Parameters

string $created_at

Return Value

ChildProfileResource

at line 64
ChildProfileResource findOneByUpdatedAt( string $updated_at)

Return the first ChildProfileResource filtered by the updated_at column

Parameters

string $updated_at

Return Value

ChildProfileResource

at line 64
array findByProfileId( int $profile_id)

Return ChildProfileResource objects filtered by the profile_id column

Parameters

int $profile_id

Return Value

array

at line 64
array findByResourceId( int $resource_id)

Return ChildProfileResource objects filtered by the resource_id column

Parameters

int $resource_id

Return Value

array

at line 64
array findByAccess( int $access)

Return ChildProfileResource objects filtered by the access column

Parameters

int $access

Return Value

array

at line 64
array findByCreatedAt( string $created_at)

Return ChildProfileResource objects filtered by the created_at column

Parameters

string $created_at

Return Value

array

at line 64
array findByUpdatedAt( string $updated_at)

Return ChildProfileResource objects filtered by the updated_at column

Parameters

string $updated_at

Return Value

array