NewsletterQuery
class NewsletterQuery extends ModelCriteria
Base class that represents a query for the 'newsletter' table.
Methods
Initializes internal state of \Thelia\Model\Base\NewsletterQuery object.
Returns a new ChildNewsletterQuery 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 email column
Filter the query on the firstname column
Filter the query on the lastname column
Filter the query on the locale column
Filter the query on the unsubscribed column
Filter the query on the created_at column
Filter the query on the updated_at column
Deletes all rows from the newsletter table.
Performs a DELETE on the database, given a ChildNewsletter or Criteria object OR a primary key value.
Filter by the latest updated
Filter by the latest created
Order by update date desc
Order by update date asc
Order by create date desc
Order by create date asc
Order by the id column
Order by the email column
Order by the firstname column
Order by the lastname column
Order by the locale column
Order by the unsubscribed column
Order by the created_at column
Order by the updated_at column
Group by the id column
Group by the email column
Group by the firstname column
Group by the lastname column
Group by the locale column
Group by the unsubscribed 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
Return the first ChildNewsletter matching the query
Return the first ChildNewsletter matching the query, or a new ChildNewsletter object populated from the query conditions when no match is found
Return the first ChildNewsletter filtered by the id column
Return the first ChildNewsletter filtered by the email column
Return the first ChildNewsletter filtered by the firstname column
Return the first ChildNewsletter filtered by the lastname column
Return the first ChildNewsletter filtered by the locale column
Return the first ChildNewsletter filtered by the unsubscribed column
Return the first ChildNewsletter filtered by the created_at column
Return the first ChildNewsletter filtered by the updated_at column
Return ChildNewsletter objects filtered by the id column
Return ChildNewsletter objects filtered by the email column
Return ChildNewsletter objects filtered by the firstname column
Return ChildNewsletter objects filtered by the lastname column
Return ChildNewsletter objects filtered by the locale column
Return ChildNewsletter objects filtered by the unsubscribed column
Return ChildNewsletter objects filtered by the created_at column
Return ChildNewsletter objects filtered by the updated_at column
Details
at line 75
__construct(
string $dbName = 'thelia',
string $modelName = '\\Thelia\\Model\\Newsletter',
string $modelAlias = null)
Initializes internal state of \Thelia\Model\Base\NewsletterQuery object.
at line 88
static
NewsletterQuery
create(
string $modelAlias = null,
Criteria $criteria = null)
Returns a new ChildNewsletterQuery object.
at line 118
Newsletter|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);
at line 200
ObjectCollection|array|mixed
findPks(
array $keys,
ConnectionInterface $con = null)
Find objects by primary key
$objs = $c->findPks(array(12, 56, 832), $con);
at line 221
NewsletterQuery
filterByPrimaryKey(
mixed $key)
Filter the query by primary key
at line 234
NewsletterQuery
filterByPrimaryKeys(
array $keys)
Filter the query by a list of primary keys
at line 258
NewsletterQuery
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
at line 296
NewsletterQuery
filterByEmail(
string $email = null,
string $comparison = null)
Filter the query on the email column
Example usage:
$query->filterByEmail('fooValue'); // WHERE email = 'fooValue'
$query->filterByEmail('%fooValue%'); // WHERE email LIKE '%fooValue%'
at line 325
NewsletterQuery
filterByFirstname(
string $firstname = null,
string $comparison = null)
Filter the query on the firstname column
Example usage:
$query->filterByFirstname('fooValue'); // WHERE firstname = 'fooValue'
$query->filterByFirstname('%fooValue%'); // WHERE firstname LIKE '%fooValue%'
at line 354
NewsletterQuery
filterByLastname(
string $lastname = null,
string $comparison = null)
Filter the query on the lastname column
Example usage:
$query->filterByLastname('fooValue'); // WHERE lastname = 'fooValue'
$query->filterByLastname('%fooValue%'); // WHERE lastname LIKE '%fooValue%'
at line 383
NewsletterQuery
filterByLocale(
string $locale = null,
string $comparison = null)
Filter the query on the locale column
Example usage:
$query->filterByLocale('fooValue'); // WHERE locale = 'fooValue'
$query->filterByLocale('%fooValue%'); // WHERE locale LIKE '%fooValue%'
at line 415
NewsletterQuery
filterByUnsubscribed(
boolean|string $unsubscribed = null,
string $comparison = null)
Filter the query on the unsubscribed column
Example usage:
$query->filterByUnsubscribed(true); // WHERE unsubscribed = true
$query->filterByUnsubscribed('yes'); // WHERE unsubscribed = true
at line 444
NewsletterQuery
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'
at line 487
NewsletterQuery
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'
at line 517
NewsletterQuery
prune(
Newsletter $newsletter = null)
Exclude object from result
at line 532
int
doDeleteAll(
ConnectionInterface $con = null)
Deletes all rows from the newsletter table.
at line 569
int
delete(
ConnectionInterface $con = null)
Performs a DELETE on the database, given a ChildNewsletter or Criteria object OR a primary key value.
at line 610
NewsletterQuery
recentlyUpdated(
int $nbDays = 7)
Filter by the latest updated
at line 622
NewsletterQuery
recentlyCreated(
int $nbDays = 7)
Filter by the latest created
at line 632
NewsletterQuery
lastUpdatedFirst()
Order by update date desc
at line 642
NewsletterQuery
firstUpdatedFirst()
Order by update date asc
at line 652
NewsletterQuery
lastCreatedFirst()
Order by create date desc
at line 662
NewsletterQuery
firstCreatedFirst()
Order by create date asc
at line 65
ChildNewsletterQuery
orderById($order = Criteria::ASC)
Order by the id column
at line 65
ChildNewsletterQuery
orderByEmail($order = Criteria::ASC)
Order by the email column
at line 65
ChildNewsletterQuery
orderByFirstname($order = Criteria::ASC)
Order by the firstname column
at line 65
ChildNewsletterQuery
orderByLastname($order = Criteria::ASC)
Order by the lastname column
at line 65
ChildNewsletterQuery
orderByLocale($order = Criteria::ASC)
Order by the locale column
at line 65
ChildNewsletterQuery
orderByUnsubscribed($order = Criteria::ASC)
Order by the unsubscribed column
at line 65
ChildNewsletterQuery
orderByCreatedAt($order = Criteria::ASC)
Order by the created_at column
at line 65
ChildNewsletterQuery
orderByUpdatedAt($order = Criteria::ASC)
Order by the updated_at column
at line 65
ChildNewsletterQuery
groupById()
Group by the id column
at line 65
ChildNewsletterQuery
groupByEmail()
Group by the email column
at line 65
ChildNewsletterQuery
groupByFirstname()
Group by the firstname column
at line 65
ChildNewsletterQuery
groupByLastname()
Group by the lastname column
at line 65
ChildNewsletterQuery
groupByLocale()
Group by the locale column
at line 65
ChildNewsletterQuery
groupByUnsubscribed()
Group by the unsubscribed column
at line 65
ChildNewsletterQuery
groupByCreatedAt()
Group by the created_at column
at line 65
ChildNewsletterQuery
groupByUpdatedAt()
Group by the updated_at column
at line 65
ChildNewsletterQuery
leftJoin($relation)
Adds a LEFT JOIN clause to the query
at line 65
ChildNewsletterQuery
rightJoin($relation)
Adds a RIGHT JOIN clause to the query
at line 65
ChildNewsletterQuery
innerJoin($relation)
Adds a INNER JOIN clause to the query
at line 65
ChildNewsletter
findOne(
ConnectionInterface $con = null)
Return the first ChildNewsletter matching the query
at line 65
ChildNewsletter
findOneOrCreate(
ConnectionInterface $con = null)
Return the first ChildNewsletter matching the query, or a new ChildNewsletter object populated from the query conditions when no match is found
at line 65
ChildNewsletter
findOneById(
int $id)
Return the first ChildNewsletter filtered by the id column
at line 65
ChildNewsletter
findOneByEmail(
string $email)
Return the first ChildNewsletter filtered by the email column
at line 65
ChildNewsletter
findOneByFirstname(
string $firstname)
Return the first ChildNewsletter filtered by the firstname column
at line 65
ChildNewsletter
findOneByLastname(
string $lastname)
Return the first ChildNewsletter filtered by the lastname column
at line 65
ChildNewsletter
findOneByLocale(
string $locale)
Return the first ChildNewsletter filtered by the locale column
at line 65
ChildNewsletter
findOneByUnsubscribed(
boolean $unsubscribed)
Return the first ChildNewsletter filtered by the unsubscribed column
at line 65
ChildNewsletter
findOneByCreatedAt(
string $created_at)
Return the first ChildNewsletter filtered by the created_at column
at line 65
ChildNewsletter
findOneByUpdatedAt(
string $updated_at)
Return the first ChildNewsletter filtered by the updated_at column
at line 65
array
findById(
int $id)
Return ChildNewsletter objects filtered by the id column
at line 65
array
findByEmail(
string $email)
Return ChildNewsletter objects filtered by the email column
at line 65
array
findByFirstname(
string $firstname)
Return ChildNewsletter objects filtered by the firstname column
at line 65
array
findByLastname(
string $lastname)
Return ChildNewsletter objects filtered by the lastname column
at line 65
array
findByLocale(
string $locale)
Return ChildNewsletter objects filtered by the locale column
at line 65
array
findByUnsubscribed(
boolean $unsubscribed)
Return ChildNewsletter objects filtered by the unsubscribed column
at line 65
array
findByCreatedAt(
string $created_at)
Return ChildNewsletter objects filtered by the created_at column
at line 65
array
findByUpdatedAt(
string $updated_at)
Return ChildNewsletter objects filtered by the updated_at column