HookQuery
class HookQuery extends HookQuery
Skeleton subclass for performing query and update operations on the 'hook' 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\HookQuery object.
Returns a new ChildHookQuery object.
Find object by primary key.
Find objects by primary key
$objs = $c->findPks(array(12, 56, 832), $con);
Filter the query by a list of primary keys
Filter the query on the id column
Filter the query on the code column
Filter the query on the type column
Filter the query on the by_module column
Filter the query on the native column
Filter the query on the activate column
Filter the query on the block 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\ModuleHook object
Adds a JOIN clause to the query using the ModuleHook relation
Use the ModuleHook relation ModuleHook object
Filter the query by a related \Thelia\Model\IgnoredModuleHook object
Adds a JOIN clause to the query using the IgnoredModuleHook relation
Use the IgnoredModuleHook relation IgnoredModuleHook object
Filter the query by a related \Thelia\Model\HookI18n object
Adds a JOIN clause to the query using the HookI18n relation
Use the HookI18n relation HookI18n object
Filter the query by a related Module object using the ignoredmodulehook table as cross reference
Deletes all rows from the hook table.
Performs a DELETE on the database, given a ChildHook or Criteria object OR a primary key value.
Adds a JOIN clause to the query using the i18n relation
Adds a JOIN clause to the query and hydrates the related I18n object.
Use the I18n relation query object
Order by the created_at column
Order by the updated_at column
Adds a LEFT JOIN clause to the query using the ModuleHook relation
Adds a RIGHT JOIN clause to the query using the ModuleHook relation
Adds a INNER JOIN clause to the query using the ModuleHook relation
Adds a LEFT JOIN clause to the query using the IgnoredModuleHook relation
Adds a RIGHT JOIN clause to the query using the IgnoredModuleHook relation
Adds a INNER JOIN clause to the query using the IgnoredModuleHook relation
Adds a LEFT JOIN clause to the query using the HookI18n relation
Adds a RIGHT JOIN clause to the query using the HookI18n relation
Adds a INNER JOIN clause to the query using the HookI18n relation
Return the first ChildHook matching the query
Return the first ChildHook matching the query, or a new ChildHook object populated from the query conditions when no match is found
Return the first ChildHook filtered by the code column
Return the first ChildHook filtered by the type column
Return the first ChildHook filtered by the by_module column
Return the first ChildHook filtered by the native column
Return the first ChildHook filtered by the activate column
Return the first ChildHook filtered by the block column
Return the first ChildHook filtered by the position column
Return the first ChildHook filtered by the created_at column
Return the first ChildHook filtered by the updated_at column
Return ChildHook objects filtered by the by_module column
Return ChildHook objects filtered by the native column
Return ChildHook objects filtered by the activate column
Return ChildHook objects filtered by the block column
Return ChildHook objects filtered by the position column
Return ChildHook objects filtered by the created_at column
Return ChildHook objects filtered by the updated_at column
Details
in
HookQuery at line 99
__construct(
string $dbName = 'thelia',
string $modelName = '\\Thelia\\Model\\Hook',
string $modelAlias = null)
Initializes internal state of \Thelia\Model\Base\HookQuery object.
in
HookQuery at line 112
static
HookQuery
create(
string $modelAlias = null,
Criteria $criteria = null)
Returns a new ChildHookQuery object.
in
HookQuery at line 142
Hook|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
HookQuery at line 224
ObjectCollection|array|mixed
findPks(
array $keys,
ConnectionInterface $con = null)
Find objects by primary key
$objs = $c->findPks(array(12, 56, 832), $con);
in
HookQuery at line 258
HookQuery
filterByPrimaryKeys(
array $keys)
Filter the query by a list of primary keys
in
HookQuery at line 282
HookQuery
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
HookQuery at line 320
HookQuery
filterByCode(
string $code = null,
string $comparison = null)
Filter the query on the code column
Example usage:
$query->filterByCode('fooValue'); // WHERE code = 'fooValue'
$query->filterByCode('%fooValue%'); // WHERE code LIKE '%fooValue%'
in
HookQuery at line 352
HookQuery
filterByType(
mixed $type = null,
string $comparison = null)
Filter the query on the type column
Example usage:
$query->filterByType(1234); // WHERE type = 1234
$query->filterByType(array(12, 34)); // WHERE type IN (12, 34)
$query->filterByType(array('min' => 12)); // WHERE type > 12
in
HookQuery at line 393
HookQuery
filterByByModule(
boolean|string $byModule = null,
string $comparison = null)
Filter the query on the by_module column
Example usage:
$query->filterByByModule(true); // WHERE bymodule = true
$query->filterByByModule('yes'); // WHERE bymodule = true
in
HookQuery at line 420
HookQuery
filterByNative(
boolean|string $native = null,
string $comparison = null)
Filter the query on the native column
Example usage:
$query->filterByNative(true); // WHERE native = true
$query->filterByNative('yes'); // WHERE native = true
in
HookQuery at line 447
HookQuery
filterByActivate(
boolean|string $activate = null,
string $comparison = null)
Filter the query on the activate column
Example usage:
$query->filterByActivate(true); // WHERE activate = true
$query->filterByActivate('yes'); // WHERE activate = true
in
HookQuery at line 474
HookQuery
filterByBlock(
boolean|string $block = null,
string $comparison = null)
Filter the query on the block column
Example usage:
$query->filterByBlock(true); // WHERE block = true
$query->filterByBlock('yes'); // WHERE block = true
in
HookQuery at line 501
HookQuery
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
HookQuery at line 544
HookQuery
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
HookQuery at line 587
HookQuery
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
HookQuery at line 618
HookQuery
filterByModuleHook(
ModuleHook|ObjectCollection $moduleHook,
string $comparison = null)
Filter the query by a related \Thelia\Model\ModuleHook object
in
HookQuery at line 641
HookQuery
joinModuleHook(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the ModuleHook relation
in
HookQuery at line 676
ModuleHookQuery
useModuleHookQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the ModuleHook relation ModuleHook object
in
HookQuery at line 691
HookQuery
filterByIgnoredModuleHook(
IgnoredModuleHook|ObjectCollection $ignoredModuleHook,
string $comparison = null)
Filter the query by a related \Thelia\Model\IgnoredModuleHook object
in
HookQuery at line 714
HookQuery
joinIgnoredModuleHook(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the IgnoredModuleHook relation
in
HookQuery at line 749
IgnoredModuleHookQuery
useIgnoredModuleHookQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the IgnoredModuleHook relation IgnoredModuleHook object
in
HookQuery at line 764
HookQuery
filterByHookI18n(
HookI18n|ObjectCollection $hookI18n,
string $comparison = null)
Filter the query by a related \Thelia\Model\HookI18n object
in
HookQuery at line 787
HookQuery
joinHookI18n(
string $relationAlias = null,
string $joinType = 'LEFT JOIN')
Adds a JOIN clause to the query using the HookI18n relation
in
HookQuery at line 822
HookI18nQuery
useHookI18nQuery(
string $relationAlias = null,
string $joinType = 'LEFT JOIN')
Use the HookI18n relation HookI18n object
in
HookQuery at line 838
HookQuery
filterByModule(
Module $module,
string $comparison = Criteria::EQUAL)
Filter the query by a related Module object using the ignoredmodulehook table as cross reference
in
HookQuery at line 868
int
doDeleteAll(
ConnectionInterface $con = null)
Deletes all rows from the hook table.
in
HookQuery at line 905
int
delete(
ConnectionInterface $con = null)
Performs a DELETE on the database, given a ChildHook or Criteria object OR a primary key value.
in
HookQuery at line 1014
HookQuery
joinI18n(
string $locale = 'en_US',
string $relationAlias = null,
string $joinType = Criteria::LEFT_JOIN)
Adds a JOIN clause to the query using the i18n relation
in
HookQuery at line 1032
HookQuery
joinWithI18n(
string $locale = 'en_US',
string $joinType = Criteria::LEFT_JOIN)
Adds a JOIN clause to the query and hydrates the related I18n object.
Shortcut for $c->joinI18n($locale)->with()
in
HookQuery at line 1053
HookI18nQuery
useI18nQuery(
string $locale = 'en_US',
string $relationAlias = null,
string $joinType = Criteria::LEFT_JOIN)
Use the I18n relation query object
in
HookQuery at line 89
ChildHookQuery
orderById($order = Criteria::ASC)
Order by the id column
in
HookQuery at line 89
ChildHookQuery
orderByCode($order = Criteria::ASC)
Order by the code column
in
HookQuery at line 89
ChildHookQuery
orderByType($order = Criteria::ASC)
Order by the type column
in
HookQuery at line 89
ChildHookQuery
orderByByModule($order = Criteria::ASC)
Order by the by_module column
in
HookQuery at line 89
ChildHookQuery
orderByNative($order = Criteria::ASC)
Order by the native column
in
HookQuery at line 89
ChildHookQuery
orderByActivate($order = Criteria::ASC)
Order by the activate column
in
HookQuery at line 89
ChildHookQuery
orderByBlock($order = Criteria::ASC)
Order by the block column
in
HookQuery at line 89
ChildHookQuery
orderByPosition($order = Criteria::ASC)
Order by the position column
in
HookQuery at line 89
ChildHookQuery
orderByCreatedAt($order = Criteria::ASC)
Order by the created_at column
in
HookQuery at line 89
ChildHookQuery
orderByUpdatedAt($order = Criteria::ASC)
Order by the updated_at column
in
HookQuery at line 89
ChildHookQuery
groupById()
Group by the id column
in
HookQuery at line 89
ChildHookQuery
groupByCode()
Group by the code column
in
HookQuery at line 89
ChildHookQuery
groupByType()
Group by the type column
in
HookQuery at line 89
ChildHookQuery
groupByByModule()
Group by the by_module column
in
HookQuery at line 89
ChildHookQuery
groupByNative()
Group by the native column
in
HookQuery at line 89
ChildHookQuery
groupByActivate()
Group by the activate column
in
HookQuery at line 89
ChildHookQuery
groupByBlock()
Group by the block column
in
HookQuery at line 89
ChildHookQuery
groupByPosition()
Group by the position column
in
HookQuery at line 89
ChildHookQuery
groupByCreatedAt()
Group by the created_at column
in
HookQuery at line 89
ChildHookQuery
groupByUpdatedAt()
Group by the updated_at column
in
HookQuery at line 89
ChildHookQuery
leftJoin($relation)
Adds a LEFT JOIN clause to the query
in
HookQuery at line 89
ChildHookQuery
rightJoin($relation)
Adds a RIGHT JOIN clause to the query
in
HookQuery at line 89
ChildHookQuery
innerJoin($relation)
Adds a INNER JOIN clause to the query
in
HookQuery at line 89
ChildHookQuery
leftJoinModuleHook($relationAlias = null)
Adds a LEFT JOIN clause to the query using the ModuleHook relation
in
HookQuery at line 89
ChildHookQuery
rightJoinModuleHook($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the ModuleHook relation
in
HookQuery at line 89
ChildHookQuery
innerJoinModuleHook($relationAlias = null)
Adds a INNER JOIN clause to the query using the ModuleHook relation
in
HookQuery at line 89
ChildHookQuery
leftJoinIgnoredModuleHook($relationAlias = null)
Adds a LEFT JOIN clause to the query using the IgnoredModuleHook relation
in
HookQuery at line 89
ChildHookQuery
rightJoinIgnoredModuleHook($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the IgnoredModuleHook relation
in
HookQuery at line 89
ChildHookQuery
innerJoinIgnoredModuleHook($relationAlias = null)
Adds a INNER JOIN clause to the query using the IgnoredModuleHook relation
in
HookQuery at line 89
ChildHookQuery
leftJoinHookI18n($relationAlias = null)
Adds a LEFT JOIN clause to the query using the HookI18n relation
in
HookQuery at line 89
ChildHookQuery
rightJoinHookI18n($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the HookI18n relation
in
HookQuery at line 89
ChildHookQuery
innerJoinHookI18n($relationAlias = null)
Adds a INNER JOIN clause to the query using the HookI18n relation
in
HookQuery at line 89
ChildHook
findOne(
ConnectionInterface $con = null)
Return the first ChildHook matching the query
in
HookQuery at line 89
ChildHook
findOneOrCreate(
ConnectionInterface $con = null)
Return the first ChildHook matching the query, or a new ChildHook object populated from the query conditions when no match is found
in
HookQuery at line 89
ChildHook
findOneById(
int $id)
Return the first ChildHook filtered by the id column
in
HookQuery at line 89
ChildHook
findOneByCode(
string $code)
Return the first ChildHook filtered by the code column
in
HookQuery at line 89
ChildHook
findOneByType(
int $type)
Return the first ChildHook filtered by the type column
in
HookQuery at line 89
ChildHook
findOneByByModule(
boolean $by_module)
Return the first ChildHook filtered by the by_module column
in
HookQuery at line 89
ChildHook
findOneByNative(
boolean $native)
Return the first ChildHook filtered by the native column
in
HookQuery at line 89
ChildHook
findOneByActivate(
boolean $activate)
Return the first ChildHook filtered by the activate column
in
HookQuery at line 89
ChildHook
findOneByBlock(
boolean $block)
Return the first ChildHook filtered by the block column
in
HookQuery at line 89
ChildHook
findOneByPosition(
int $position)
Return the first ChildHook filtered by the position column
in
HookQuery at line 89
ChildHook
findOneByCreatedAt(
string $created_at)
Return the first ChildHook filtered by the created_at column
in
HookQuery at line 89
ChildHook
findOneByUpdatedAt(
string $updated_at)
Return the first ChildHook filtered by the updated_at column
in
HookQuery at line 89
array
findById(
int $id)
Return ChildHook objects filtered by the id column
in
HookQuery at line 89
array
findByCode(
string $code)
Return ChildHook objects filtered by the code column
in
HookQuery at line 89
array
findByType(
int $type)
Return ChildHook objects filtered by the type column
in
HookQuery at line 89
array
findByByModule(
boolean $by_module)
Return ChildHook objects filtered by the by_module column
in
HookQuery at line 89
array
findByNative(
boolean $native)
Return ChildHook objects filtered by the native column
in
HookQuery at line 89
array
findByActivate(
boolean $activate)
Return ChildHook objects filtered by the activate column
in
HookQuery at line 89
array
findByBlock(
boolean $block)
Return ChildHook objects filtered by the block column
in
HookQuery at line 89
array
findByPosition(
int $position)
Return ChildHook objects filtered by the position column
in
HookQuery at line 89
array
findByCreatedAt(
string $created_at)
Return ChildHook objects filtered by the created_at column
in
HookQuery at line 89
array
findByUpdatedAt(
string $updated_at)
Return ChildHook objects filtered by the updated_at column