class CartQuery extends ModelCriteria

Base class that represents a query for the 'cart' table.

Methods

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

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

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

Returns a new ChildCartQuery object.

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

Find object by primary key.

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

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

filterByPrimaryKey( mixed $key)

Filter the query by primary key

filterByPrimaryKeys( array $keys)

Filter the query by a list of primary keys

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

Filter the query on the id column

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

Filter the query on the token column

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

Filter the query on the customer_id column

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

Filter the query on the addressdeliveryid column

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

Filter the query on the addressinvoiceid column

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

Filter the query on the currency_id column

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

Filter the query on the discount column

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

Filter the query on the created_at column

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

Filter the query on the updated_at column

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

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

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

Adds a JOIN clause to the query using the Customer relation

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

Use the Customer relation Customer object

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

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

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

Adds a JOIN clause to the query using the AddressRelatedByAddressDeliveryId relation

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

Use the AddressRelatedByAddressDeliveryId relation Address object

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

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

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

Adds a JOIN clause to the query using the AddressRelatedByAddressInvoiceId relation

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

Use the AddressRelatedByAddressInvoiceId relation Address object

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

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

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

Adds a JOIN clause to the query using the Currency relation

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

Use the Currency relation Currency object

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

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

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

Adds a JOIN clause to the query using the CartItem relation

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

Use the CartItem relation CartItem object

prune( Cart $cart = null)

Exclude object from result

int
doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the cart table.

int
delete( ConnectionInterface $con = null)

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

recentlyUpdated( int $nbDays = 7)

Filter by the latest updated

recentlyCreated( int $nbDays = 7)

Filter by the latest created

lastUpdatedFirst()

Order by update date desc

firstUpdatedFirst()

Order by update date asc

lastCreatedFirst()

Order by create date desc

firstCreatedFirst()

Order by create date asc

ChildCartQuery
orderById($order = Criteria::ASC)

Order by the id column

ChildCartQuery
orderByToken($order = Criteria::ASC)

Order by the token column

ChildCartQuery
orderByCustomerId($order = Criteria::ASC)

Order by the customer_id column

ChildCartQuery
orderByAddressDeliveryId($order = Criteria::ASC)

Order by the addressdeliveryid column

ChildCartQuery
orderByAddressInvoiceId($order = Criteria::ASC)

Order by the addressinvoiceid column

ChildCartQuery
orderByCurrencyId($order = Criteria::ASC)

Order by the currency_id column

ChildCartQuery
orderByDiscount($order = Criteria::ASC)

Order by the discount column

ChildCartQuery
orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

ChildCartQuery
orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

ChildCartQuery
groupById()

Group by the id column

ChildCartQuery
groupByToken()

Group by the token column

ChildCartQuery
groupByCustomerId()

Group by the customer_id column

ChildCartQuery
groupByAddressDeliveryId()

Group by the addressdeliveryid column

ChildCartQuery
groupByAddressInvoiceId()

Group by the addressinvoiceid column

ChildCartQuery
groupByCurrencyId()

Group by the currency_id column

ChildCartQuery
groupByDiscount()

Group by the discount column

ChildCartQuery
groupByCreatedAt()

Group by the created_at column

ChildCartQuery
groupByUpdatedAt()

Group by the updated_at column

ChildCartQuery
leftJoin($relation)

Adds a LEFT JOIN clause to the query

ChildCartQuery
rightJoin($relation)

Adds a RIGHT JOIN clause to the query

ChildCartQuery
innerJoin($relation)

Adds a INNER JOIN clause to the query

ChildCartQuery
leftJoinCustomer($relationAlias = null)

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

ChildCartQuery
rightJoinCustomer($relationAlias = null)

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

ChildCartQuery
innerJoinCustomer($relationAlias = null)

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

ChildCartQuery
leftJoinAddressRelatedByAddressDeliveryId($relationAlias = null)

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

ChildCartQuery
rightJoinAddressRelatedByAddressDeliveryId($relationAlias = null)

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

ChildCartQuery
innerJoinAddressRelatedByAddressDeliveryId($relationAlias = null)

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

ChildCartQuery
leftJoinAddressRelatedByAddressInvoiceId($relationAlias = null)

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

ChildCartQuery
rightJoinAddressRelatedByAddressInvoiceId($relationAlias = null)

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

ChildCartQuery
innerJoinAddressRelatedByAddressInvoiceId($relationAlias = null)

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

ChildCartQuery
leftJoinCurrency($relationAlias = null)

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

ChildCartQuery
rightJoinCurrency($relationAlias = null)

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

ChildCartQuery
innerJoinCurrency($relationAlias = null)

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

ChildCartQuery
leftJoinCartItem($relationAlias = null)

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

ChildCartQuery
rightJoinCartItem($relationAlias = null)

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

ChildCartQuery
innerJoinCartItem($relationAlias = null)

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

ChildCart
findOne( ConnectionInterface $con = null)

Return the first ChildCart matching the query

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

ChildCart
findOneById( int $id)

Return the first ChildCart filtered by the id column

ChildCart
findOneByToken( string $token)

Return the first ChildCart filtered by the token column

ChildCart
findOneByCustomerId( int $customer_id)

Return the first ChildCart filtered by the customer_id column

ChildCart
findOneByAddressDeliveryId( int $address_delivery_id)

Return the first ChildCart filtered by the addressdeliveryid column

ChildCart
findOneByAddressInvoiceId( int $address_invoice_id)

Return the first ChildCart filtered by the addressinvoiceid column

ChildCart
findOneByCurrencyId( int $currency_id)

Return the first ChildCart filtered by the currency_id column

ChildCart
findOneByDiscount( string $discount)

Return the first ChildCart filtered by the discount column

ChildCart
findOneByCreatedAt( string $created_at)

Return the first ChildCart filtered by the created_at column

ChildCart
findOneByUpdatedAt( string $updated_at)

Return the first ChildCart filtered by the updated_at column

array
findById( int $id)

Return ChildCart objects filtered by the id column

array
findByToken( string $token)

Return ChildCart objects filtered by the token column

array
findByCustomerId( int $customer_id)

Return ChildCart objects filtered by the customer_id column

array
findByAddressDeliveryId( int $address_delivery_id)

Return ChildCart objects filtered by the addressdeliveryid column

array
findByAddressInvoiceId( int $address_invoice_id)

Return ChildCart objects filtered by the addressinvoiceid column

array
findByCurrencyId( int $currency_id)

Return ChildCart objects filtered by the currency_id column

array
findByDiscount( string $discount)

Return ChildCart objects filtered by the discount column

array
findByCreatedAt( string $created_at)

Return ChildCart objects filtered by the created_at column

array
findByUpdatedAt( string $updated_at)

Return ChildCart objects filtered by the updated_at column

Details

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'

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

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

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

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

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

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

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

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()

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()

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()

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()

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

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

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

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

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

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()

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

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

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()

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

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

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()

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

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

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()

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

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

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()

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

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

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.

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

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

at line 1131
CartQuery lastUpdatedFirst()

Order by update date desc

Return Value

CartQuery The current query, for fluid interface

at line 1141
CartQuery firstUpdatedFirst()

Order by update date asc

Return Value

CartQuery The current query, for fluid interface

at line 1151
CartQuery lastCreatedFirst()

Order by create date desc

Return Value

CartQuery The current query, for fluid interface

at line 1161
CartQuery firstCreatedFirst()

Order by create date asc

Return Value

CartQuery The current query, for fluid interface

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

Order by the id column

Parameters

$order

Return Value

ChildCartQuery

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

Order by the token column

Parameters

$order

Return Value

ChildCartQuery

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

Order by the customer_id column

Parameters

$order

Return Value

ChildCartQuery

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

Order by the addressdeliveryid column

Parameters

$order

Return Value

ChildCartQuery

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

Order by the addressinvoiceid column

Parameters

$order

Return Value

ChildCartQuery

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

Order by the currency_id column

Parameters

$order

Return Value

ChildCartQuery

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

Order by the discount column

Parameters

$order

Return Value

ChildCartQuery

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

Order by the created_at column

Parameters

$order

Return Value

ChildCartQuery

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

Order by the updated_at column

Parameters

$order

Return Value

ChildCartQuery

at line 92
ChildCartQuery groupById()

Group by the id column

Return Value

ChildCartQuery

at line 92
ChildCartQuery groupByToken()

Group by the token column

Return Value

ChildCartQuery

at line 92
ChildCartQuery groupByCustomerId()

Group by the customer_id column

Return Value

ChildCartQuery

at line 92
ChildCartQuery groupByAddressDeliveryId()

Group by the addressdeliveryid column

Return Value

ChildCartQuery

at line 92
ChildCartQuery groupByAddressInvoiceId()

Group by the addressinvoiceid column

Return Value

ChildCartQuery

at line 92
ChildCartQuery groupByCurrencyId()

Group by the currency_id column

Return Value

ChildCartQuery

at line 92
ChildCartQuery groupByDiscount()

Group by the discount column

Return Value

ChildCartQuery

at line 92
ChildCartQuery groupByCreatedAt()

Group by the created_at column

Return Value

ChildCartQuery

at line 92
ChildCartQuery groupByUpdatedAt()

Group by the updated_at column

Return Value

ChildCartQuery

at line 92
ChildCartQuery leftJoin($relation)

Adds a LEFT JOIN clause to the query

Parameters

$relation

Return Value

ChildCartQuery

at line 92
ChildCartQuery rightJoin($relation)

Adds a RIGHT JOIN clause to the query

Parameters

$relation

Return Value

ChildCartQuery

at line 92
ChildCartQuery innerJoin($relation)

Adds a INNER JOIN clause to the query

Parameters

$relation

Return Value

ChildCartQuery

at line 92
ChildCartQuery leftJoinCustomer($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildCartQuery

at line 92
ChildCartQuery rightJoinCustomer($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildCartQuery

at line 92
ChildCartQuery innerJoinCustomer($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildCartQuery

at line 92
ChildCartQuery leftJoinAddressRelatedByAddressDeliveryId($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildCartQuery

at line 92
ChildCartQuery rightJoinAddressRelatedByAddressDeliveryId($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildCartQuery

at line 92
ChildCartQuery innerJoinAddressRelatedByAddressDeliveryId($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildCartQuery

at line 92
ChildCartQuery leftJoinAddressRelatedByAddressInvoiceId($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildCartQuery

at line 92
ChildCartQuery rightJoinAddressRelatedByAddressInvoiceId($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildCartQuery

at line 92
ChildCartQuery innerJoinAddressRelatedByAddressInvoiceId($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildCartQuery

at line 92
ChildCartQuery leftJoinCurrency($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildCartQuery

at line 92
ChildCartQuery rightJoinCurrency($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildCartQuery

at line 92
ChildCartQuery innerJoinCurrency($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildCartQuery

at line 92
ChildCartQuery leftJoinCartItem($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildCartQuery

at line 92
ChildCartQuery rightJoinCartItem($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildCartQuery

at line 92
ChildCartQuery innerJoinCartItem($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildCartQuery

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

Return the first ChildCart matching the query

Parameters

ConnectionInterface $con

Return Value

ChildCart

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

at line 92
ChildCart findOneById( int $id)

Return the first ChildCart filtered by the id column

Parameters

int $id

Return Value

ChildCart

at line 92
ChildCart findOneByToken( string $token)

Return the first ChildCart filtered by the token column

Parameters

string $token

Return Value

ChildCart

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

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

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

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

at line 92
ChildCart findOneByDiscount( string $discount)

Return the first ChildCart filtered by the discount column

Parameters

string $discount

Return Value

ChildCart

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

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

at line 92
array findById( int $id)

Return ChildCart objects filtered by the id column

Parameters

int $id

Return Value

array

at line 92
array findByToken( string $token)

Return ChildCart objects filtered by the token column

Parameters

string $token

Return Value

array

at line 92
array findByCustomerId( int $customer_id)

Return ChildCart objects filtered by the customer_id column

Parameters

int $customer_id

Return Value

array

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

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

at line 92
array findByCurrencyId( int $currency_id)

Return ChildCart objects filtered by the currency_id column

Parameters

int $currency_id

Return Value

array

at line 92
array findByDiscount( string $discount)

Return ChildCart objects filtered by the discount column

Parameters

string $discount

Return Value

array

at line 92
array findByCreatedAt( string $created_at)

Return ChildCart objects filtered by the created_at column

Parameters

string $created_at

Return Value

array

at line 92
array findByUpdatedAt( string $updated_at)

Return ChildCart objects filtered by the updated_at column

Parameters

string $updated_at

Return Value

array