AttributeTemplateQuery
class AttributeTemplateQuery extends AttributeTemplateQuery
Skeleton subclass for performing query and update operations on the 'attribute_template' table.
You should add additional methods to this class to meet the application requirements. This class will only be generated as long as it does not already exist in the output directory.
Methods
Initializes internal state of \Thelia\Model\Base\AttributeTemplateQuery object.
Returns a new ChildAttributeTemplateQuery object.
Find object by primary key.
Find objects by primary key
$objs = $c->findPks(array(12, 56, 832), $con);
Filter the query by primary key
Filter the query by a list of primary keys
Filter the query on the id column
Filter the query on the attribute_id column
Filter the query on the template_id column
Filter the query on the position column
Filter the query on the created_at column
Filter the query on the updated_at column
Filter the query by a related \Thelia\Model\Attribute object
Adds a JOIN clause to the query using the Attribute relation
Use the Attribute relation Attribute object
Filter the query by a related \Thelia\Model\Template object
Adds a JOIN clause to the query using the Template relation
Use the Template relation Template object
Deletes all rows from the attribute_template table.
Performs a DELETE on the database, given a ChildAttributeTemplate or Criteria object OR a primary key value.
Filter by the latest updated
Filter by the latest created
Order by the id column
Order by the attribute_id column
Order by the template_id column
Order by the position column
Order by the created_at column
Order by the updated_at column
Group by the attribute_id column
Group by the template_id column
Group by the position column
Group by the created_at column
Group by the updated_at column
Adds a LEFT JOIN clause to the query
Adds a RIGHT JOIN clause to the query
Adds a INNER JOIN clause to the query
Adds a LEFT JOIN clause to the query using the Attribute relation
Adds a RIGHT JOIN clause to the query using the Attribute relation
Adds a INNER JOIN clause to the query using the Attribute relation
Adds a LEFT JOIN clause to the query using the Template relation
Adds a RIGHT JOIN clause to the query using the Template relation
Adds a INNER JOIN clause to the query using the Template relation
Return the first ChildAttributeTemplate matching the query
Return the first ChildAttributeTemplate matching the query, or a new ChildAttributeTemplate object populated from the query conditions when no match is found
Return the first ChildAttributeTemplate filtered by the id column
Return the first ChildAttributeTemplate filtered by the attribute_id column
Return the first ChildAttributeTemplate filtered by the template_id column
Return the first ChildAttributeTemplate filtered by the position column
Return the first ChildAttributeTemplate filtered by the created_at column
Return the first ChildAttributeTemplate filtered by the updated_at column
Return ChildAttributeTemplate objects filtered by the id column
Return ChildAttributeTemplate objects filtered by the attribute_id column
Return ChildAttributeTemplate objects filtered by the template_id column
Return ChildAttributeTemplate objects filtered by the position column
Return ChildAttributeTemplate objects filtered by the created_at column
Return ChildAttributeTemplate objects filtered by the updated_at column
Details
in
AttributeTemplateQuery at line 78
__construct(
string $dbName = 'thelia',
string $modelName = '\\Thelia\\Model\\AttributeTemplate',
string $modelAlias = null)
Initializes internal state of \Thelia\Model\Base\AttributeTemplateQuery object.
in
AttributeTemplateQuery at line 91
static
AttributeTemplateQuery
create(
string $modelAlias = null,
Criteria $criteria = null)
Returns a new ChildAttributeTemplateQuery object.
in
AttributeTemplateQuery at line 121
AttributeTemplate|array|mixed
findPk(
mixed $key,
ConnectionInterface $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);
in
AttributeTemplateQuery at line 203
ObjectCollection|array|mixed
findPks(
array $keys,
ConnectionInterface $con = null)
Find objects by primary key
$objs = $c->findPks(array(12, 56, 832), $con);
in
AttributeTemplateQuery at line 224
AttributeTemplateQuery
filterByPrimaryKey(
mixed $key)
Filter the query by primary key
in
AttributeTemplateQuery at line 237
AttributeTemplateQuery
filterByPrimaryKeys(
array $keys)
Filter the query by a list of primary keys
in
AttributeTemplateQuery at line 261
AttributeTemplateQuery
filterById(
mixed $id = null,
string $comparison = null)
Filter the query on the id column
Example usage:
$query->filterById(1234); // WHERE id = 1234
$query->filterById(array(12, 34)); // WHERE id IN (12, 34)
$query->filterById(array('min' => 12)); // WHERE id > 12
in
AttributeTemplateQuery at line 304
AttributeTemplateQuery
filterByAttributeId(
mixed $attributeId = null,
string $comparison = null)
Filter the query on the attribute_id column
Example usage:
$query->filterByAttributeId(1234); // WHERE attributeid = 1234
$query->filterByAttributeId(array(12, 34)); // WHERE attributeid IN (12, 34)
$query->filterByAttributeId(array('min' => 12)); // WHERE attribute_id > 12
in
AttributeTemplateQuery at line 347
AttributeTemplateQuery
filterByTemplateId(
mixed $templateId = null,
string $comparison = null)
Filter the query on the template_id column
Example usage:
$query->filterByTemplateId(1234); // WHERE templateid = 1234
$query->filterByTemplateId(array(12, 34)); // WHERE templateid IN (12, 34)
$query->filterByTemplateId(array('min' => 12)); // WHERE template_id > 12
in
AttributeTemplateQuery at line 388
AttributeTemplateQuery
filterByPosition(
mixed $position = null,
string $comparison = null)
Filter the query on the position column
Example usage:
$query->filterByPosition(1234); // WHERE position = 1234
$query->filterByPosition(array(12, 34)); // WHERE position IN (12, 34)
$query->filterByPosition(array('min' => 12)); // WHERE position > 12
in
AttributeTemplateQuery at line 431
AttributeTemplateQuery
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'
in
AttributeTemplateQuery at line 474
AttributeTemplateQuery
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'
in
AttributeTemplateQuery at line 505
AttributeTemplateQuery
filterByAttribute(
Attribute|ObjectCollection $attribute,
string $comparison = null)
Filter the query by a related \Thelia\Model\Attribute object
in
AttributeTemplateQuery at line 530
AttributeTemplateQuery
joinAttribute(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Attribute relation
in
AttributeTemplateQuery at line 565
AttributeQuery
useAttributeQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Attribute relation Attribute object
in
AttributeTemplateQuery at line 580
AttributeTemplateQuery
filterByTemplate(
Template|ObjectCollection $template,
string $comparison = null)
Filter the query by a related \Thelia\Model\Template object
in
AttributeTemplateQuery at line 605
AttributeTemplateQuery
joinTemplate(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Template relation
in
AttributeTemplateQuery at line 640
TemplateQuery
useTemplateQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Template relation Template object
in
AttributeTemplateQuery at line 654
AttributeTemplateQuery
prune(
AttributeTemplate $attributeTemplate = null)
Exclude object from result
in
AttributeTemplateQuery at line 669
int
doDeleteAll(
ConnectionInterface $con = null)
Deletes all rows from the attribute_template table.
in
AttributeTemplateQuery at line 706
int
delete(
ConnectionInterface $con = null)
Performs a DELETE on the database, given a ChildAttributeTemplate or Criteria object OR a primary key value.
in
AttributeTemplateQuery at line 747
AttributeTemplateQuery
recentlyUpdated(
int $nbDays = 7)
Filter by the latest updated
in
AttributeTemplateQuery at line 759
AttributeTemplateQuery
recentlyCreated(
int $nbDays = 7)
Filter by the latest created
in
AttributeTemplateQuery at line 769
AttributeTemplateQuery
lastUpdatedFirst()
Order by update date desc
in
AttributeTemplateQuery at line 779
AttributeTemplateQuery
firstUpdatedFirst()
Order by update date asc
in
AttributeTemplateQuery at line 789
AttributeTemplateQuery
lastCreatedFirst()
Order by create date desc
in
AttributeTemplateQuery at line 799
AttributeTemplateQuery
firstCreatedFirst()
Order by create date asc
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
orderById($order = Criteria::ASC)
Order by the id column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
orderByAttributeId($order = Criteria::ASC)
Order by the attribute_id column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
orderByTemplateId($order = Criteria::ASC)
Order by the template_id column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
orderByPosition($order = Criteria::ASC)
Order by the position column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
orderByCreatedAt($order = Criteria::ASC)
Order by the created_at column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
orderByUpdatedAt($order = Criteria::ASC)
Order by the updated_at column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
groupById()
Group by the id column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
groupByAttributeId()
Group by the attribute_id column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
groupByTemplateId()
Group by the template_id column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
groupByPosition()
Group by the position column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
groupByCreatedAt()
Group by the created_at column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
groupByUpdatedAt()
Group by the updated_at column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
leftJoin($relation)
Adds a LEFT JOIN clause to the query
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
rightJoin($relation)
Adds a RIGHT JOIN clause to the query
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
innerJoin($relation)
Adds a INNER JOIN clause to the query
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
leftJoinAttribute($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Attribute relation
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
rightJoinAttribute($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Attribute relation
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
innerJoinAttribute($relationAlias = null)
Adds a INNER JOIN clause to the query using the Attribute relation
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
leftJoinTemplate($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Template relation
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
rightJoinTemplate($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Template relation
in
AttributeTemplateQuery at line 68
ChildAttributeTemplateQuery
innerJoinTemplate($relationAlias = null)
Adds a INNER JOIN clause to the query using the Template relation
in
AttributeTemplateQuery at line 68
ChildAttributeTemplate
findOne(
ConnectionInterface $con = null)
Return the first ChildAttributeTemplate matching the query
in
AttributeTemplateQuery at line 68
ChildAttributeTemplate
findOneOrCreate(
ConnectionInterface $con = null)
Return the first ChildAttributeTemplate matching the query, or a new ChildAttributeTemplate object populated from the query conditions when no match is found
in
AttributeTemplateQuery at line 68
ChildAttributeTemplate
findOneById(
int $id)
Return the first ChildAttributeTemplate filtered by the id column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplate
findOneByAttributeId(
int $attribute_id)
Return the first ChildAttributeTemplate filtered by the attribute_id column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplate
findOneByTemplateId(
int $template_id)
Return the first ChildAttributeTemplate filtered by the template_id column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplate
findOneByPosition(
int $position)
Return the first ChildAttributeTemplate filtered by the position column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplate
findOneByCreatedAt(
string $created_at)
Return the first ChildAttributeTemplate filtered by the created_at column
in
AttributeTemplateQuery at line 68
ChildAttributeTemplate
findOneByUpdatedAt(
string $updated_at)
Return the first ChildAttributeTemplate filtered by the updated_at column
in
AttributeTemplateQuery at line 68
array
findById(
int $id)
Return ChildAttributeTemplate objects filtered by the id column
in
AttributeTemplateQuery at line 68
array
findByAttributeId(
int $attribute_id)
Return ChildAttributeTemplate objects filtered by the attribute_id column
in
AttributeTemplateQuery at line 68
array
findByTemplateId(
int $template_id)
Return ChildAttributeTemplate objects filtered by the template_id column
in
AttributeTemplateQuery at line 68
array
findByPosition(
int $position)
Return ChildAttributeTemplate objects filtered by the position column
in
AttributeTemplateQuery at line 68
array
findByCreatedAt(
string $created_at)
Return ChildAttributeTemplate objects filtered by the created_at column
in
AttributeTemplateQuery at line 68
array
findByUpdatedAt(
string $updated_at)
Return ChildAttributeTemplate objects filtered by the updated_at column