getActivated()
getActivated() : array|mixed|\PropelObjectCollection
Skeleton subclass for performing query and update operations on the 'module' 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.
__construct(string $dbName, string $modelName, string $modelAlias)
Initializes internal state of \Thelia\Model\Base\ModuleQuery object.
| 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' |
create(string $modelAlias, \Propel\Runtime\ActiveQuery\Criteria $criteria) : \Thelia\Model\ModuleQuery
Returns a new ChildModuleQuery object.
| string | $modelAlias | The alias of a model in the query |
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | Optional Criteria to build the query from |
findPk(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Module|array|mixed
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);
| mixed | $key | Primary key to use for the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | an optional connection object |
the result, formatted by the current formatter
findPks(array $keys, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\ObjectCollection|array|mixed
Find objects by primary key <code> $objs = $c->findPks(array(12, 56, 832), $con); </code>
| array | $keys | Primary keys to use for the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | an optional connection object |
the list of results, formatted by the current formatter
filterByPrimaryKey(mixed $key) : \Thelia\Model\ModuleQuery
Filter the query by primary key
| mixed | $key | Primary key to use for the query |
The current query, for fluid interface
filterByPrimaryKeys(array $keys) : \Thelia\Model\ModuleQuery
Filter the query by a list of primary keys
| array | $keys | The list of primary key to use for the query |
The current query, for fluid interface
filterById(mixed $id, string $comparison) : \Thelia\Model\ModuleQuery
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
| mixed | $id | 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 |
The current query, for fluid interface
filterByCode(string $code, string $comparison) : \Thelia\Model\ModuleQuery
Filter the query on the code column
Example usage:
$query->filterByCode('fooValue'); // WHERE code = 'fooValue'
$query->filterByCode('%fooValue%'); // WHERE code LIKE '%fooValue%'
| string | $code | The value to use as filter. Accepts wildcards (* and % trigger a LIKE) |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
filterByType(mixed $type, string $comparison) : \Thelia\Model\ModuleQuery
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
| mixed | $type | 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 |
The current query, for fluid interface
filterByActivate(mixed $activate, string $comparison) : \Thelia\Model\ModuleQuery
Filter the query on the activate column
Example usage:
$query->filterByActivate(1234); // WHERE activate = 1234
$query->filterByActivate(array(12, 34)); // WHERE activate IN (12, 34)
$query->filterByActivate(array('min' => 12)); // WHERE activate > 12
| mixed | $activate | 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 |
The current query, for fluid interface
filterByPosition(mixed $position, string $comparison) : \Thelia\Model\ModuleQuery
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
| mixed | $position | 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 |
The current query, for fluid interface
filterByCreatedAt(mixed $createdAt, string $comparison) : \Thelia\Model\ModuleQuery
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'
| 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 |
The current query, for fluid interface
filterByUpdatedAt(mixed $updatedAt, string $comparison) : \Thelia\Model\ModuleQuery
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'
| 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 |
The current query, for fluid interface
filterByGroupModule(\Thelia\Model\GroupModule|\Propel\Runtime\Collection\ObjectCollection $groupModule, string $comparison) : \Thelia\Model\ModuleQuery
Filter the query by a related \Thelia\Model\GroupModule object
| \Thelia\Model\GroupModule|\Propel\Runtime\Collection\ObjectCollection | $groupModule | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinGroupModule(string $relationAlias, string $joinType) : \Thelia\Model\ModuleQuery
Adds a JOIN clause to the query using the GroupModule relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useGroupModuleQuery(string $relationAlias, string $joinType) : \Thelia\Model\GroupModuleQuery
Use the GroupModule relation GroupModule object
| 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' |
A secondary query class using the current class as primary query
filterByModuleI18n(\Thelia\Model\ModuleI18n|\Propel\Runtime\Collection\ObjectCollection $moduleI18n, string $comparison) : \Thelia\Model\ModuleQuery
Filter the query by a related \Thelia\Model\ModuleI18n object
| \Thelia\Model\ModuleI18n|\Propel\Runtime\Collection\ObjectCollection | $moduleI18n | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinModuleI18n(string $relationAlias, string $joinType) : \Thelia\Model\ModuleQuery
Adds a JOIN clause to the query using the ModuleI18n relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useModuleI18nQuery(string $relationAlias, string $joinType) : \Thelia\Model\ModuleI18nQuery
Use the ModuleI18n relation ModuleI18n object
| 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' |
A secondary query class using the current class as primary query
prune(\Thelia\Model\Module $module) : \Thelia\Model\ModuleQuery
Exclude object from result
| \Thelia\Model\Module | $module | Object to remove from the list of results |
The current query, for fluid interface
delete(\Propel\Runtime\Connection\ConnectionInterface $con) : int
Performs a DELETE on the database, given a ChildModule or Criteria object OR a primary key value.
| \Propel\Runtime\Connection\ConnectionInterface | $con | the connection to use |
Any exceptions caught during processing will be rethrown wrapped into a PropelException.
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.
recentlyUpdated(int $nbDays) : \Thelia\Model\ModuleQuery
Filter by the latest updated
| int | $nbDays | Maximum age of the latest update in days |
The current query, for fluid interface
recentlyCreated(int $nbDays) : \Thelia\Model\ModuleQuery
Filter by the latest created
| int | $nbDays | Maximum age of in days |
The current query, for fluid interface
lastUpdatedFirst() : \Thelia\Model\ModuleQuery
Order by update date desc
The current query, for fluid interface
firstUpdatedFirst() : \Thelia\Model\ModuleQuery
Order by update date asc
The current query, for fluid interface
lastCreatedFirst() : \Thelia\Model\ModuleQuery
Order by create date desc
The current query, for fluid interface
firstCreatedFirst() : \Thelia\Model\ModuleQuery
Order by create date asc
The current query, for fluid interface
joinI18n(string $locale, string $relationAlias, string $joinType) : \Thelia\Model\ModuleQuery
Adds a JOIN clause to the query using the i18n relation
| string | $locale | Locale to use for the join condition, e.g. 'fr_FR' |
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join'. Defaults to left join. |
The current query, for fluid interface
joinWithI18n(string $locale, string $joinType) : \Thelia\Model\ModuleQuery
Adds a JOIN clause to the query and hydrates the related I18n object.
Shortcut for $c->joinI18n($locale)->with()
| string | $locale | Locale to use for the join condition, e.g. 'fr_FR' |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join'. Defaults to left join. |
The current query, for fluid interface
useI18nQuery(string $locale, string $relationAlias, string $joinType) : \Thelia\Model\ModuleI18nQuery
Use the I18n relation query object
| string | $locale | Locale to use for the join condition, e.g. 'fr_FR' |
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join'. Defaults to left join. |
A secondary query class using the current class as primary query
findPkSimple(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Module
Find object by primary key using raw SQL to go fast.
Bypass doSelect() and the object formatter by using generated code.
| mixed | $key | Primary key to use for the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | A connection object |
A model object, or null if the key is not found
findPkComplex(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Module|array|mixed
Find object by primary key.
| mixed | $key | Primary key to use for the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | A connection object |
the result, formatted by the current formatter