$isVersioningEnabled
$isVersioningEnabled
Whether the versioning is enabled
Skeleton subclass for performing query and update operations on the 'message' 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\MessageQuery 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\MessageQuery
Returns a new ChildMessageQuery 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\Message|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\MessageQuery
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\MessageQuery
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\MessageQuery
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\MessageQuery
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
filterBySecured(mixed $secured, string $comparison) : \Thelia\Model\MessageQuery
Filter the query on the secured column
Example usage:
$query->filterBySecured(1234); // WHERE secured = 1234
$query->filterBySecured(array(12, 34)); // WHERE secured IN (12, 34)
$query->filterBySecured(array('min' => 12)); // WHERE secured > 12
| mixed | $secured | 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
filterByRef(string $ref, string $comparison) : \Thelia\Model\MessageQuery
Filter the query on the ref column
Example usage:
$query->filterByRef('fooValue'); // WHERE ref = 'fooValue'
$query->filterByRef('%fooValue%'); // WHERE ref LIKE '%fooValue%'
| string | $ref | 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
filterByCreatedAt(mixed $createdAt, string $comparison) : \Thelia\Model\MessageQuery
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\MessageQuery
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
filterByVersion(mixed $version, string $comparison) : \Thelia\Model\MessageQuery
Filter the query on the version column
Example usage:
$query->filterByVersion(1234); // WHERE version = 1234
$query->filterByVersion(array(12, 34)); // WHERE version IN (12, 34)
$query->filterByVersion(array('min' => 12)); // WHERE version > 12
| mixed | $version | 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
filterByVersionCreatedAt(mixed $versionCreatedAt, string $comparison) : \Thelia\Model\MessageQuery
Filter the query on the version_created_at column
Example usage:
$query->filterByVersionCreatedAt('2011-03-14'); // WHERE version_created_at = '2011-03-14'
$query->filterByVersionCreatedAt('now'); // WHERE version_created_at = '2011-03-14'
$query->filterByVersionCreatedAt(array('max' => 'yesterday')); // WHERE version_created_at > '2011-03-13'
| mixed | $versionCreatedAt | 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
filterByVersionCreatedBy(string $versionCreatedBy, string $comparison) : \Thelia\Model\MessageQuery
Filter the query on the version_created_by column
Example usage:
$query->filterByVersionCreatedBy('fooValue'); // WHERE version_created_by = 'fooValue'
$query->filterByVersionCreatedBy('%fooValue%'); // WHERE version_created_by LIKE '%fooValue%'
| string | $versionCreatedBy | 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
filterByMessageI18n(\Thelia\Model\MessageI18n|\Propel\Runtime\Collection\ObjectCollection $messageI18n, string $comparison) : \Thelia\Model\MessageQuery
Filter the query by a related \Thelia\Model\MessageI18n object
| \Thelia\Model\MessageI18n|\Propel\Runtime\Collection\ObjectCollection | $messageI18n | 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
joinMessageI18n(string $relationAlias, string $joinType) : \Thelia\Model\MessageQuery
Adds a JOIN clause to the query using the MessageI18n 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
useMessageI18nQuery(string $relationAlias, string $joinType) : \Thelia\Model\MessageI18nQuery
Use the MessageI18n relation MessageI18n 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
filterByMessageVersion(\Thelia\Model\MessageVersion|\Propel\Runtime\Collection\ObjectCollection $messageVersion, string $comparison) : \Thelia\Model\MessageQuery
Filter the query by a related \Thelia\Model\MessageVersion object
| \Thelia\Model\MessageVersion|\Propel\Runtime\Collection\ObjectCollection | $messageVersion | 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
joinMessageVersion(string $relationAlias, string $joinType) : \Thelia\Model\MessageQuery
Adds a JOIN clause to the query using the MessageVersion 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
useMessageVersionQuery(string $relationAlias, string $joinType) : \Thelia\Model\MessageVersionQuery
Use the MessageVersion relation MessageVersion 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\Message $message) : \Thelia\Model\MessageQuery
Exclude object from result
| \Thelia\Model\Message | $message | 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 ChildMessage 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\MessageQuery
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\MessageQuery
Filter by the latest created
| int | $nbDays | Maximum age of in days |
The current query, for fluid interface
lastUpdatedFirst() : \Thelia\Model\MessageQuery
Order by update date desc
The current query, for fluid interface
firstUpdatedFirst() : \Thelia\Model\MessageQuery
Order by update date asc
The current query, for fluid interface
lastCreatedFirst() : \Thelia\Model\MessageQuery
Order by create date desc
The current query, for fluid interface
firstCreatedFirst() : \Thelia\Model\MessageQuery
Order by create date asc
The current query, for fluid interface
joinI18n(string $locale, string $relationAlias, string $joinType) : \Thelia\Model\MessageQuery
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\MessageQuery
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\MessageI18nQuery
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\Message
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\Message|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