class CartQuery extends CartQuery

Skeleton subclass for performing query and update operations on the 'cart' 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

__construct( string $dbName = 'thelia', string $modelName = '\\Thelia\\Model\\Cart', string $modelAlias = null)

Initializes internal state of \Thelia\Model\Base\CartQuery object.

from  CartQuery
static  CartQuery
create( string $modelAlias = null, Criteria $criteria = null)

Returns a new ChildCartQuery object.

from  CartQuery
Cart|array|mixed
findPk( mixed $key, ConnectionInterface $con = null)

Find object by primary key.

from  CartQuery
ObjectCollection|array|mixed
findPks( array $keys, ConnectionInterface $con = null)

Find objects by primary key $objs = $c->findPks(array(12, 56, 832), $con);

from  CartQuery
filterByPrimaryKey( mixed $key)

Filter the query by primary key

from  CartQuery
filterByPrimaryKeys( array $keys)

Filter the query by a list of primary keys

from  CartQuery
filterById( mixed $id = null, string $comparison = null)

Filter the query on the id column

from  CartQuery
filterByToken( string $token = null, string $comparison = null)

Filter the query on the token column

from  CartQuery
filterByCustomerId( mixed $customerId = null, string $comparison = null)

Filter the query on the customer_id column

from  CartQuery
filterByAddressDeliveryId( mixed $addressDeliveryId = null, string $comparison = null)

Filter the query on the addressdeliveryid column

from  CartQuery
filterByAddressInvoiceId( mixed $addressInvoiceId = null, string $comparison = null)

Filter the query on the addressinvoiceid column

from  CartQuery
filterByCurrencyId( mixed $currencyId = null, string $comparison = null)

Filter the query on the currency_id column

from  CartQuery
filterByDiscount( mixed $discount = null, string $comparison = null)

Filter the query on the discount column

from  CartQuery
filterByCreatedAt( mixed $createdAt = null, string $comparison = null)

Filter the query on the created_at column

from  CartQuery
filterByUpdatedAt( mixed $updatedAt = null, string $comparison = null)

Filter the query on the updated_at column

from  CartQuery
filterByCustomer( Customer|ObjectCollection $customer, string $comparison = null)

Filter the query by a related \Thelia\Model\Customer object

from  CartQuery
joinCustomer( string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query using the Customer relation

from  CartQuery
useCustomerQuery( string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Use the Customer relation Customer object

from  CartQuery
filterByAddressRelatedByAddressDeliveryId( Address|ObjectCollection $address, string $comparison = null)

Filter the query by a related \Thelia\Model\Address object

from  CartQuery
joinAddressRelatedByAddressDeliveryId( string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query using the AddressRelatedByAddressDeliveryId relation

from  CartQuery
useAddressRelatedByAddressDeliveryIdQuery( string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Use the AddressRelatedByAddressDeliveryId relation Address object

from  CartQuery
filterByAddressRelatedByAddressInvoiceId( Address|ObjectCollection $address, string $comparison = null)

Filter the query by a related \Thelia\Model\Address object

from  CartQuery
joinAddressRelatedByAddressInvoiceId( string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query using the AddressRelatedByAddressInvoiceId relation

from  CartQuery
useAddressRelatedByAddressInvoiceIdQuery( string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Use the AddressRelatedByAddressInvoiceId relation Address object

from  CartQuery
filterByCurrency( Currency|ObjectCollection $currency, string $comparison = null)

Filter the query by a related \Thelia\Model\Currency object

from  CartQuery
joinCurrency( string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query using the Currency relation

from  CartQuery
useCurrencyQuery( string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Use the Currency relation Currency object

from  CartQuery
filterByCartItem( CartItem|ObjectCollection $cartItem, string $comparison = null)

Filter the query by a related \Thelia\Model\CartItem object

from  CartQuery
joinCartItem( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the CartItem relation

from  CartQuery
useCartItemQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the CartItem relation CartItem object

from  CartQuery
prune( Cart $cart = null)

Exclude object from result

from  CartQuery
int
doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the cart table.

from  CartQuery
int
delete( ConnectionInterface $con = null)

Performs a DELETE on the database, given a ChildCart or Criteria object OR a primary key value.

from  CartQuery
recentlyUpdated( int $nbDays = 7)

Filter by the latest updated

from  CartQuery
recentlyCreated( int $nbDays = 7)

Filter by the latest created

from  CartQuery
lastUpdatedFirst()

Order by update date desc

from  CartQuery
firstUpdatedFirst()

Order by update date asc

from  CartQuery
lastCreatedFirst()

Order by create date desc

from  CartQuery
firstCreatedFirst()

Order by create date asc

from  CartQuery
ChildCartQuery
orderById($order = Criteria::ASC)

Order by the id column

from  CartQuery
ChildCartQuery
orderByToken($order = Criteria::ASC)

Order by the token column

from  CartQuery
ChildCartQuery
orderByCustomerId($order = Criteria::ASC)

Order by the customer_id column

from  CartQuery
ChildCartQuery
orderByAddressDeliveryId($order = Criteria::ASC)

Order by the addressdeliveryid column

from  CartQuery
ChildCartQuery
orderByAddressInvoiceId($order = Criteria::ASC)

Order by the addressinvoiceid column

from  CartQuery
ChildCartQuery
orderByCurrencyId($order = Criteria::ASC)

Order by the currency_id column

from  CartQuery
ChildCartQuery
orderByDiscount($order = Criteria::ASC)

Order by the discount column

from  CartQuery
ChildCartQuery
orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

from  CartQuery
ChildCartQuery
orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

from  CartQuery
ChildCartQuery
groupById()

Group by the id column

from  CartQuery
ChildCartQuery
groupByToken()

Group by the token column

from  CartQuery
ChildCartQuery
groupByCustomerId()

Group by the customer_id column

from  CartQuery
ChildCartQuery
groupByAddressDeliveryId()

Group by the addressdeliveryid column

from  CartQuery
ChildCartQuery
groupByAddressInvoiceId()

Group by the addressinvoiceid column

from  CartQuery
ChildCartQuery
groupByCurrencyId()

Group by the currency_id column

from  CartQuery
ChildCartQuery
groupByDiscount()

Group by the discount column

from  CartQuery
ChildCartQuery
groupByCreatedAt()

Group by the created_at column

from  CartQuery
ChildCartQuery
groupByUpdatedAt()

Group by the updated_at column

from  CartQuery
ChildCartQuery
leftJoin($relation)

Adds a LEFT JOIN clause to the query

from  CartQuery
ChildCartQuery
rightJoin($relation)

Adds a RIGHT JOIN clause to the query

from  CartQuery
ChildCartQuery
innerJoin($relation)

Adds a INNER JOIN clause to the query

from  CartQuery
ChildCartQuery
leftJoinCustomer($relationAlias = null)

Adds a LEFT JOIN clause to the query using the Customer relation

from  CartQuery
ChildCartQuery
rightJoinCustomer($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the Customer relation

from  CartQuery
ChildCartQuery
innerJoinCustomer($relationAlias = null)

Adds a INNER JOIN clause to the query using the Customer relation

from  CartQuery
ChildCartQuery
leftJoinAddressRelatedByAddressDeliveryId($relationAlias = null)

Adds a LEFT JOIN clause to the query using the AddressRelatedByAddressDeliveryId relation

from  CartQuery
ChildCartQuery
rightJoinAddressRelatedByAddressDeliveryId($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the AddressRelatedByAddressDeliveryId relation

from  CartQuery
ChildCartQuery
innerJoinAddressRelatedByAddressDeliveryId($relationAlias = null)

Adds a INNER JOIN clause to the query using the AddressRelatedByAddressDeliveryId relation

from  CartQuery
ChildCartQuery
leftJoinAddressRelatedByAddressInvoiceId($relationAlias = null)

Adds a LEFT JOIN clause to the query using the AddressRelatedByAddressInvoiceId relation

from  CartQuery
ChildCartQuery
rightJoinAddressRelatedByAddressInvoiceId($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the AddressRelatedByAddressInvoiceId relation

from  CartQuery
ChildCartQuery
innerJoinAddressRelatedByAddressInvoiceId($relationAlias = null)

Adds a INNER JOIN clause to the query using the AddressRelatedByAddressInvoiceId relation

from  CartQuery
ChildCartQuery
leftJoinCurrency($relationAlias = null)

Adds a LEFT JOIN clause to the query using the Currency relation

from  CartQuery
ChildCartQuery
rightJoinCurrency($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the Currency relation

from  CartQuery
ChildCartQuery
innerJoinCurrency($relationAlias = null)

Adds a INNER JOIN clause to the query using the Currency relation

from  CartQuery
ChildCartQuery
leftJoinCartItem($relationAlias = null)

Adds a LEFT JOIN clause to the query using the CartItem relation

from  CartQuery
ChildCartQuery
rightJoinCartItem($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the CartItem relation

from  CartQuery
ChildCartQuery
innerJoinCartItem($relationAlias = null)

Adds a INNER JOIN clause to the query using the CartItem relation

from  CartQuery
ChildCart
findOne( ConnectionInterface $con = null)

Return the first ChildCart matching the query

from  CartQuery
ChildCart
findOneOrCreate( ConnectionInterface $con = null)

Return the first ChildCart matching the query, or a new ChildCart object populated from the query conditions when no match is found

from  CartQuery
ChildCart
findOneById( int $id)

Return the first ChildCart filtered by the id column

from  CartQuery
ChildCart
findOneByToken( string $token)

Return the first ChildCart filtered by the token column

from  CartQuery
ChildCart
findOneByCustomerId( int $customer_id)

Return the first ChildCart filtered by the customer_id column

from  CartQuery
ChildCart
findOneByAddressDeliveryId( int $address_delivery_id)

Return the first ChildCart filtered by the addressdeliveryid column

from  CartQuery
ChildCart
findOneByAddressInvoiceId( int $address_invoice_id)

Return the first ChildCart filtered by the addressinvoiceid column

from  CartQuery
ChildCart
findOneByCurrencyId( int $currency_id)

Return the first ChildCart filtered by the currency_id column

from  CartQuery
ChildCart
findOneByDiscount( string $discount)

Return the first ChildCart filtered by the discount column

from  CartQuery
ChildCart
findOneByCreatedAt( string $created_at)

Return the first ChildCart filtered by the created_at column

from  CartQuery
ChildCart
findOneByUpdatedAt( string $updated_at)

Return the first ChildCart filtered by the updated_at column

from  CartQuery
array
findById( int $id)

Return ChildCart objects filtered by the id column

from  CartQuery
array
findByToken( string $token)

Return ChildCart objects filtered by the token column

from  CartQuery
array
findByCustomerId( int $customer_id)

Return ChildCart objects filtered by the customer_id column

from  CartQuery
array
findByAddressDeliveryId( int $address_delivery_id)

Return ChildCart objects filtered by the addressdeliveryid column

from  CartQuery
array
findByAddressInvoiceId( int $address_invoice_id)

Return ChildCart objects filtered by the addressinvoiceid column

from  CartQuery
array
findByCurrencyId( int $currency_id)

Return ChildCart objects filtered by the currency_id column

from  CartQuery
array
findByDiscount( string $discount)

Return ChildCart objects filtered by the discount column

from  CartQuery
array
findByCreatedAt( string $created_at)

Return ChildCart objects filtered by the created_at column

from  CartQuery
array
findByUpdatedAt( string $updated_at)

Return ChildCart objects filtered by the updated_at column

from  CartQuery

Details

in CartQuery at line 102
__construct( string $dbName = 'thelia', string $modelName = '\\Thelia\\Model\\Cart', string $modelAlias = null)

Initializes internal state of \Thelia\Model\Base\CartQuery object.

Parameters

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'

in CartQuery at line 115
static CartQuery create( string $modelAlias = null, Criteria $criteria = null)

Returns a new ChildCartQuery object.

Parameters

string $modelAlias The alias of a model in the query
Criteria $criteria Optional Criteria to build the query from

Return Value

CartQuery

in CartQuery at line 145
Cart|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);

Parameters

mixed $key Primary key to use for the query
ConnectionInterface $con an optional connection object

Return Value

Cart|array|mixed the result, formatted by the current formatter

in CartQuery at line 227
ObjectCollection|array|mixed findPks( array $keys, ConnectionInterface $con = null)

Find objects by primary key $objs = $c->findPks(array(12, 56, 832), $con);

Parameters

array $keys Primary keys to use for the query
ConnectionInterface $con an optional connection object

Return Value

ObjectCollection|array|mixed the list of results, formatted by the current formatter

in CartQuery at line 248
CartQuery filterByPrimaryKey( mixed $key)

Filter the query by primary key

Parameters

mixed $key Primary key to use for the query

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 261
CartQuery filterByPrimaryKeys( array $keys)

Filter the query by a list of primary keys

Parameters

array $keys The list of primary key to use for the query

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 285
CartQuery 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

Parameters

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

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 323
CartQuery filterByToken( string $token = null, string $comparison = null)

Filter the query on the token column

Example usage: $query->filterByToken('fooValue'); // WHERE token = 'fooValue' $query->filterByToken('%fooValue%'); // WHERE token LIKE '%fooValue%'

Parameters

string $token 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

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 357
CartQuery filterByCustomerId( mixed $customerId = null, string $comparison = null)

Filter the query on the customer_id column

Example usage: $query->filterByCustomerId(1234); // WHERE customerid = 1234 $query->filterByCustomerId(array(12, 34)); // WHERE customerid IN (12, 34) $query->filterByCustomerId(array('min' => 12)); // WHERE customer_id > 12

Parameters

mixed $customerId 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

Return Value

CartQuery The current query, for fluid interface

See also

filterByCustomer()

in CartQuery at line 400
CartQuery filterByAddressDeliveryId( mixed $addressDeliveryId = null, string $comparison = null)

Filter the query on the addressdeliveryid column

Example usage: $query->filterByAddressDeliveryId(1234); // WHERE addressdeliveryid = 1234 $query->filterByAddressDeliveryId(array(12, 34)); // WHERE addressdeliveryid IN (12, 34) $query->filterByAddressDeliveryId(array('min' => 12)); // WHERE addressdeliveryid > 12

Parameters

mixed $addressDeliveryId 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

Return Value

CartQuery The current query, for fluid interface

See also

filterByAddressRelatedByAddressDeliveryId()

in CartQuery at line 443
CartQuery filterByAddressInvoiceId( mixed $addressInvoiceId = null, string $comparison = null)

Filter the query on the addressinvoiceid column

Example usage: $query->filterByAddressInvoiceId(1234); // WHERE addressinvoiceid = 1234 $query->filterByAddressInvoiceId(array(12, 34)); // WHERE addressinvoiceid IN (12, 34) $query->filterByAddressInvoiceId(array('min' => 12)); // WHERE addressinvoiceid > 12

Parameters

mixed $addressInvoiceId 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

Return Value

CartQuery The current query, for fluid interface

See also

filterByAddressRelatedByAddressInvoiceId()

in CartQuery at line 486
CartQuery filterByCurrencyId( mixed $currencyId = null, string $comparison = null)

Filter the query on the currency_id column

Example usage: $query->filterByCurrencyId(1234); // WHERE currencyid = 1234 $query->filterByCurrencyId(array(12, 34)); // WHERE currencyid IN (12, 34) $query->filterByCurrencyId(array('min' => 12)); // WHERE currency_id > 12

Parameters

mixed $currencyId 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

Return Value

CartQuery The current query, for fluid interface

See also

filterByCurrency()

in CartQuery at line 527
CartQuery filterByDiscount( mixed $discount = null, string $comparison = null)

Filter the query on the discount column

Example usage: $query->filterByDiscount(1234); // WHERE discount = 1234 $query->filterByDiscount(array(12, 34)); // WHERE discount IN (12, 34) $query->filterByDiscount(array('min' => 12)); // WHERE discount > 12

Parameters

mixed $discount 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

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 570
CartQuery 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'

Parameters

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

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 613
CartQuery 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'

Parameters

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

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 644
CartQuery filterByCustomer( Customer|ObjectCollection $customer, string $comparison = null)

Filter the query by a related \Thelia\Model\Customer object

Parameters

Customer|ObjectCollection $customer The related object(s) to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 669
CartQuery joinCustomer( string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query using the Customer relation

Parameters

string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 704
CustomerQuery useCustomerQuery( string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Use the Customer relation Customer object

Parameters

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'

Return Value

CustomerQuery A secondary query class using the current class as primary query

See also

useQuery()

in CartQuery at line 719
CartQuery filterByAddressRelatedByAddressDeliveryId( Address|ObjectCollection $address, string $comparison = null)

Filter the query by a related \Thelia\Model\Address object

Parameters

Address|ObjectCollection $address The related object(s) to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 744
CartQuery joinAddressRelatedByAddressDeliveryId( string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query using the AddressRelatedByAddressDeliveryId relation

Parameters

string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 779
AddressQuery useAddressRelatedByAddressDeliveryIdQuery( string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Use the AddressRelatedByAddressDeliveryId relation Address object

Parameters

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'

Return Value

AddressQuery A secondary query class using the current class as primary query

See also

useQuery()

in CartQuery at line 794
CartQuery filterByAddressRelatedByAddressInvoiceId( Address|ObjectCollection $address, string $comparison = null)

Filter the query by a related \Thelia\Model\Address object

Parameters

Address|ObjectCollection $address The related object(s) to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 819
CartQuery joinAddressRelatedByAddressInvoiceId( string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query using the AddressRelatedByAddressInvoiceId relation

Parameters

string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 854
AddressQuery useAddressRelatedByAddressInvoiceIdQuery( string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Use the AddressRelatedByAddressInvoiceId relation Address object

Parameters

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'

Return Value

AddressQuery A secondary query class using the current class as primary query

See also

useQuery()

in CartQuery at line 869
CartQuery filterByCurrency( Currency|ObjectCollection $currency, string $comparison = null)

Filter the query by a related \Thelia\Model\Currency object

Parameters

Currency|ObjectCollection $currency The related object(s) to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 894
CartQuery joinCurrency( string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query using the Currency relation

Parameters

string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 929
CurrencyQuery useCurrencyQuery( string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Use the Currency relation Currency object

Parameters

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'

Return Value

CurrencyQuery A secondary query class using the current class as primary query

See also

useQuery()

in CartQuery at line 944
CartQuery filterByCartItem( CartItem|ObjectCollection $cartItem, string $comparison = null)

Filter the query by a related \Thelia\Model\CartItem object

Parameters

CartItem|ObjectCollection $cartItem the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 967
CartQuery joinCartItem( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the CartItem relation

Parameters

string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 1002
CartItemQuery useCartItemQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the CartItem relation CartItem object

Parameters

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'

Return Value

CartItemQuery A secondary query class using the current class as primary query

See also

useQuery()

in CartQuery at line 1016
CartQuery prune( Cart $cart = null)

Exclude object from result

Parameters

Cart $cart Object to remove from the list of results

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 1031
int doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the cart table.

Parameters

ConnectionInterface $con the connection to use

Return Value

int The number of affected rows (if supported by underlying database driver).

in CartQuery at line 1068
int delete( ConnectionInterface $con = null)

Performs a DELETE on the database, given a ChildCart or Criteria object OR a primary key value.

Parameters

ConnectionInterface $con

Return Value

int 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.

Exceptions

PropelException Any exceptions caught during processing will be rethrown wrapped into a PropelException.

in CartQuery at line 1109
CartQuery recentlyUpdated( int $nbDays = 7)

Filter by the latest updated

Parameters

int $nbDays Maximum age of the latest update in days

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 1121
CartQuery recentlyCreated( int $nbDays = 7)

Filter by the latest created

Parameters

int $nbDays Maximum age of in days

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 1131
CartQuery lastUpdatedFirst()

Order by update date desc

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 1141
CartQuery firstUpdatedFirst()

Order by update date asc

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 1151
CartQuery lastCreatedFirst()

Order by create date desc

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 1161
CartQuery firstCreatedFirst()

Order by create date asc

Return Value

CartQuery The current query, for fluid interface

in CartQuery at line 92
ChildCartQuery orderById($order = Criteria::ASC)

Order by the id column

Parameters

$order

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery orderByToken($order = Criteria::ASC)

Order by the token column

Parameters

$order

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery orderByCustomerId($order = Criteria::ASC)

Order by the customer_id column

Parameters

$order

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery orderByAddressDeliveryId($order = Criteria::ASC)

Order by the addressdeliveryid column

Parameters

$order

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery orderByAddressInvoiceId($order = Criteria::ASC)

Order by the addressinvoiceid column

Parameters

$order

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery orderByCurrencyId($order = Criteria::ASC)

Order by the currency_id column

Parameters

$order

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery orderByDiscount($order = Criteria::ASC)

Order by the discount column

Parameters

$order

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

Parameters

$order

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

Parameters

$order

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery groupById()

Group by the id column

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery groupByToken()

Group by the token column

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery groupByCustomerId()

Group by the customer_id column

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery groupByAddressDeliveryId()

Group by the addressdeliveryid column

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery groupByAddressInvoiceId()

Group by the addressinvoiceid column

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery groupByCurrencyId()

Group by the currency_id column

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery groupByDiscount()

Group by the discount column

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery groupByCreatedAt()

Group by the created_at column

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery groupByUpdatedAt()

Group by the updated_at column

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery leftJoin($relation)

Adds a LEFT JOIN clause to the query

Parameters

$relation

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery rightJoin($relation)

Adds a RIGHT JOIN clause to the query

Parameters

$relation

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery innerJoin($relation)

Adds a INNER JOIN clause to the query

Parameters

$relation

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery leftJoinCustomer($relationAlias = null)

Adds a LEFT JOIN clause to the query using the Customer relation

Parameters

$relationAlias

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery rightJoinCustomer($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the Customer relation

Parameters

$relationAlias

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery innerJoinCustomer($relationAlias = null)

Adds a INNER JOIN clause to the query using the Customer relation

Parameters

$relationAlias

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery leftJoinAddressRelatedByAddressDeliveryId($relationAlias = null)

Adds a LEFT JOIN clause to the query using the AddressRelatedByAddressDeliveryId relation

Parameters

$relationAlias

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery rightJoinAddressRelatedByAddressDeliveryId($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the AddressRelatedByAddressDeliveryId relation

Parameters

$relationAlias

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery innerJoinAddressRelatedByAddressDeliveryId($relationAlias = null)

Adds a INNER JOIN clause to the query using the AddressRelatedByAddressDeliveryId relation

Parameters

$relationAlias

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery leftJoinAddressRelatedByAddressInvoiceId($relationAlias = null)

Adds a LEFT JOIN clause to the query using the AddressRelatedByAddressInvoiceId relation

Parameters

$relationAlias

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery rightJoinAddressRelatedByAddressInvoiceId($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the AddressRelatedByAddressInvoiceId relation

Parameters

$relationAlias

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery innerJoinAddressRelatedByAddressInvoiceId($relationAlias = null)

Adds a INNER JOIN clause to the query using the AddressRelatedByAddressInvoiceId relation

Parameters

$relationAlias

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery leftJoinCurrency($relationAlias = null)

Adds a LEFT JOIN clause to the query using the Currency relation

Parameters

$relationAlias

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery rightJoinCurrency($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the Currency relation

Parameters

$relationAlias

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery innerJoinCurrency($relationAlias = null)

Adds a INNER JOIN clause to the query using the Currency relation

Parameters

$relationAlias

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery leftJoinCartItem($relationAlias = null)

Adds a LEFT JOIN clause to the query using the CartItem relation

Parameters

$relationAlias

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery rightJoinCartItem($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the CartItem relation

Parameters

$relationAlias

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCartQuery innerJoinCartItem($relationAlias = null)

Adds a INNER JOIN clause to the query using the CartItem relation

Parameters

$relationAlias

Return Value

ChildCartQuery

in CartQuery at line 92
ChildCart findOne( ConnectionInterface $con = null)

Return the first ChildCart matching the query

Parameters

ConnectionInterface $con

Return Value

ChildCart

in CartQuery at line 92
ChildCart findOneOrCreate( ConnectionInterface $con = null)

Return the first ChildCart matching the query, or a new ChildCart object populated from the query conditions when no match is found

Parameters

ConnectionInterface $con

Return Value

ChildCart

in CartQuery at line 92
ChildCart findOneById( int $id)

Return the first ChildCart filtered by the id column

Parameters

int $id

Return Value

ChildCart

in CartQuery at line 92
ChildCart findOneByToken( string $token)

Return the first ChildCart filtered by the token column

Parameters

string $token

Return Value

ChildCart

in CartQuery at line 92
ChildCart findOneByCustomerId( int $customer_id)

Return the first ChildCart filtered by the customer_id column

Parameters

int $customer_id

Return Value

ChildCart

in CartQuery at line 92
ChildCart findOneByAddressDeliveryId( int $address_delivery_id)

Return the first ChildCart filtered by the addressdeliveryid column

Parameters

int $address_delivery_id

Return Value

ChildCart

in CartQuery at line 92
ChildCart findOneByAddressInvoiceId( int $address_invoice_id)

Return the first ChildCart filtered by the addressinvoiceid column

Parameters

int $address_invoice_id

Return Value

ChildCart

in CartQuery at line 92
ChildCart findOneByCurrencyId( int $currency_id)

Return the first ChildCart filtered by the currency_id column

Parameters

int $currency_id

Return Value

ChildCart

in CartQuery at line 92
ChildCart findOneByDiscount( string $discount)

Return the first ChildCart filtered by the discount column

Parameters

string $discount

Return Value

ChildCart

in CartQuery at line 92
ChildCart findOneByCreatedAt( string $created_at)

Return the first ChildCart filtered by the created_at column

Parameters

string $created_at

Return Value

ChildCart

in CartQuery at line 92
ChildCart findOneByUpdatedAt( string $updated_at)

Return the first ChildCart filtered by the updated_at column

Parameters

string $updated_at

Return Value

ChildCart

in CartQuery at line 92
array findById( int $id)

Return ChildCart objects filtered by the id column

Parameters

int $id

Return Value

array

in CartQuery at line 92
array findByToken( string $token)

Return ChildCart objects filtered by the token column

Parameters

string $token

Return Value

array

in CartQuery at line 92
array findByCustomerId( int $customer_id)

Return ChildCart objects filtered by the customer_id column

Parameters

int $customer_id

Return Value

array

in CartQuery at line 92
array findByAddressDeliveryId( int $address_delivery_id)

Return ChildCart objects filtered by the addressdeliveryid column

Parameters

int $address_delivery_id

Return Value

array

in CartQuery at line 92
array findByAddressInvoiceId( int $address_invoice_id)

Return ChildCart objects filtered by the addressinvoiceid column

Parameters

int $address_invoice_id

Return Value

array

in CartQuery at line 92
array findByCurrencyId( int $currency_id)

Return ChildCart objects filtered by the currency_id column

Parameters

int $currency_id

Return Value

array

in CartQuery at line 92
array findByDiscount( string $discount)

Return ChildCart objects filtered by the discount column

Parameters

string $discount

Return Value

array

in CartQuery at line 92
array findByCreatedAt( string $created_at)

Return ChildCart objects filtered by the created_at column

Parameters

string $created_at

Return Value

array

in CartQuery at line 92
array findByUpdatedAt( string $updated_at)

Return ChildCart objects filtered by the updated_at column

Parameters

string $updated_at

Return Value

array