Overview

Namespaces

  • Thelia
    • Action
    • Controller
    • Core
      • Bundle
      • Event
      • EventListener
      • Template
        • BaseParam
    • Exception
    • Log
      • Destination
    • Model
      • map
      • om
    • Routing
      • Matcher
    • Tools
    • Tpex
      • BaseParam
      • Exception
      • Loop
      • Tests

Classes

  • BaseAccessory
  • BaseAccessoryPeer
  • BaseAccessoryQuery
  • BaseAddress
  • BaseAddressPeer
  • BaseAddressQuery
  • BaseAdmin
  • BaseAdminGroup
  • BaseAdminGroupPeer
  • BaseAdminGroupQuery
  • BaseAdminLog
  • BaseAdminLogPeer
  • BaseAdminLogQuery
  • BaseAdminPeer
  • BaseAdminQuery
  • BaseArea
  • BaseAreaPeer
  • BaseAreaQuery
  • BaseAttribute
  • BaseAttributeAv
  • BaseAttributeAvDesc
  • BaseAttributeAvDescPeer
  • BaseAttributeAvDescQuery
  • BaseAttributeAvI18n
  • BaseAttributeAvI18nPeer
  • BaseAttributeAvI18nQuery
  • BaseAttributeAvPeer
  • BaseAttributeAvQuery
  • BaseAttributeCategory
  • BaseAttributeCategoryPeer
  • BaseAttributeCategoryQuery
  • BaseAttributeCombination
  • BaseAttributeCombinationPeer
  • BaseAttributeCombinationQuery
  • BaseAttributeDesc
  • BaseAttributeDescPeer
  • BaseAttributeDescQuery
  • BaseAttributeI18n
  • BaseAttributeI18nPeer
  • BaseAttributeI18nQuery
  • BaseAttributePeer
  • BaseAttributeQuery
  • BaseCategory
  • BaseCategoryDesc
  • BaseCategoryDescPeer
  • BaseCategoryDescQuery
  • BaseCategoryI18n
  • BaseCategoryI18nPeer
  • BaseCategoryI18nQuery
  • BaseCategoryPeer
  • BaseCategoryQuery
  • BaseCategoryVersion
  • BaseCategoryVersionPeer
  • BaseCategoryVersionQuery
  • BaseCombination
  • BaseCombinationPeer
  • BaseCombinationQuery
  • BaseConfig
  • BaseConfigDesc
  • BaseConfigDescPeer
  • BaseConfigDescQuery
  • BaseConfigI18n
  • BaseConfigI18nPeer
  • BaseConfigI18nQuery
  • BaseConfigPeer
  • BaseConfigQuery
  • BaseContent
  • BaseContentAssoc
  • BaseContentAssocPeer
  • BaseContentAssocQuery
  • BaseContentDesc
  • BaseContentDescPeer
  • BaseContentDescQuery
  • BaseContentFolder
  • BaseContentFolderPeer
  • BaseContentFolderQuery
  • BaseContentI18n
  • BaseContentI18nPeer
  • BaseContentI18nQuery
  • BaseContentPeer
  • BaseContentQuery
  • BaseContentVersion
  • BaseContentVersionPeer
  • BaseContentVersionQuery
  • BaseCountry
  • BaseCountryDesc
  • BaseCountryDescPeer
  • BaseCountryDescQuery
  • BaseCountryI18n
  • BaseCountryI18nPeer
  • BaseCountryI18nQuery
  • BaseCountryPeer
  • BaseCountryQuery
  • BaseCoupon
  • BaseCouponOrder
  • BaseCouponOrderPeer
  • BaseCouponOrderQuery
  • BaseCouponPeer
  • BaseCouponQuery
  • BaseCouponRule
  • BaseCouponRulePeer
  • BaseCouponRuleQuery
  • BaseCurrency
  • BaseCurrencyPeer
  • BaseCurrencyQuery
  • BaseCustomer
  • BaseCustomerPeer
  • BaseCustomerQuery
  • BaseCustomerTitle
  • BaseCustomerTitleDesc
  • BaseCustomerTitleDescPeer
  • BaseCustomerTitleDescQuery
  • BaseCustomerTitleI18n
  • BaseCustomerTitleI18nPeer
  • BaseCustomerTitleI18nQuery
  • BaseCustomerTitlePeer
  • BaseCustomerTitleQuery
  • BaseDelivzone
  • BaseDelivzonePeer
  • BaseDelivzoneQuery
  • BaseDocument
  • BaseDocumentDesc
  • BaseDocumentDescPeer
  • BaseDocumentDescQuery
  • BaseDocumentI18n
  • BaseDocumentI18nPeer
  • BaseDocumentI18nQuery
  • BaseDocumentPeer
  • BaseDocumentQuery
  • BaseFeature
  • BaseFeatureAv
  • BaseFeatureAvDesc
  • BaseFeatureAvDescPeer
  • BaseFeatureAvDescQuery
  • BaseFeatureAvI18n
  • BaseFeatureAvI18nPeer
  • BaseFeatureAvI18nQuery
  • BaseFeatureAvPeer
  • BaseFeatureAvQuery
  • BaseFeatureCategory
  • BaseFeatureCategoryPeer
  • BaseFeatureCategoryQuery
  • BaseFeatureDesc
  • BaseFeatureDescPeer
  • BaseFeatureDescQuery
  • BaseFeatureI18n
  • BaseFeatureI18nPeer
  • BaseFeatureI18nQuery
  • BaseFeaturePeer
  • BaseFeatureProd
  • BaseFeatureProdPeer
  • BaseFeatureProdQuery
  • BaseFeatureQuery
  • BaseFolder
  • BaseFolderDesc
  • BaseFolderDescPeer
  • BaseFolderDescQuery
  • BaseFolderI18n
  • BaseFolderI18nPeer
  • BaseFolderI18nQuery
  • BaseFolderPeer
  • BaseFolderQuery
  • BaseFolderVersion
  • BaseFolderVersionPeer
  • BaseFolderVersionQuery
  • BaseGroup
  • BaseGroupDesc
  • BaseGroupDescPeer
  • BaseGroupDescQuery
  • BaseGroupI18n
  • BaseGroupI18nPeer
  • BaseGroupI18nQuery
  • BaseGroupModule
  • BaseGroupModulePeer
  • BaseGroupModuleQuery
  • BaseGroupPeer
  • BaseGroupQuery
  • BaseGroupResource
  • BaseGroupResourcePeer
  • BaseGroupResourceQuery
  • BaseImage
  • BaseImageDesc
  • BaseImageDescPeer
  • BaseImageDescQuery
  • BaseImageI18n
  • BaseImageI18nPeer
  • BaseImageI18nQuery
  • BaseImagePeer
  • BaseImageQuery
  • BaseLang
  • BaseLangPeer
  • BaseLangQuery
  • BaseMessage
  • BaseMessageDesc
  • BaseMessageDescPeer
  • BaseMessageDescQuery
  • BaseMessageI18n
  • BaseMessageI18nPeer
  • BaseMessageI18nQuery
  • BaseMessagePeer
  • BaseMessageQuery
  • BaseMessageVersion
  • BaseMessageVersionPeer
  • BaseMessageVersionQuery
  • BaseModuleDesc
  • BaseModuleDescPeer
  • BaseModuleDescQuery
  • BaseModuleI18n
  • BaseModuleI18nPeer
  • BaseModuleI18nQuery
  • BaseModulePeer
  • BaseOrder
  • BaseOrderAddress
  • BaseOrderAddressPeer
  • BaseOrderAddressQuery
  • BaseOrderFeature
  • BaseOrderFeaturePeer
  • BaseOrderFeatureQuery
  • BaseOrderPeer
  • BaseOrderProduct
  • BaseOrderProductPeer
  • BaseOrderProductQuery
  • BaseOrderQuery
  • BaseOrderStatus
  • BaseOrderStatusDesc
  • BaseOrderStatusDescPeer
  • BaseOrderStatusDescQuery
  • BaseOrderStatusI18n
  • BaseOrderStatusI18nPeer
  • BaseOrderStatusI18nQuery
  • BaseOrderStatusPeer
  • BaseOrderStatusQuery
  • BaseProduct
  • BaseProductCategory
  • BaseProductCategoryPeer
  • BaseProductCategoryQuery
  • BaseProductDesc
  • BaseProductDescPeer
  • BaseProductDescQuery
  • BaseProductI18n
  • BaseProductI18nPeer
  • BaseProductI18nQuery
  • BaseProductPeer
  • BaseProductQuery
  • BaseProductVersion
  • BaseProductVersionPeer
  • BaseProductVersionQuery
  • BaseResource
  • BaseResourceDesc
  • BaseResourceDescPeer
  • BaseResourceDescQuery
  • BaseResourceI18n
  • BaseResourceI18nPeer
  • BaseResourceI18nQuery
  • BaseResourcePeer
  • BaseResourceQuery
  • BaseRewriting
  • BaseRewritingPeer
  • BaseRewritingQuery
  • BaseStock
  • BaseStockPeer
  • BaseStockQuery
  • BaseTax
  • BaseTaxDesc
  • BaseTaxDescPeer
  • BaseTaxDescQuery
  • BaseTaxI18n
  • BaseTaxI18nPeer
  • BaseTaxI18nQuery
  • BaseTaxPeer
  • BaseTaxQuery
  • BaseTaxRule
  • BaseTaxRuleCountry
  • BaseTaxRuleCountryPeer
  • BaseTaxRuleCountryQuery
  • BaseTaxRuleDesc
  • BaseTaxRuleDescPeer
  • BaseTaxRuleDescQuery
  • BaseTaxRuleI18n
  • BaseTaxRuleI18nPeer
  • BaseTaxRuleI18nQuery
  • BaseTaxRulePeer
  • BaseTaxRuleQuery
  • Overview
  • Namespace
  • Class
  • Tree

Class BaseAddressQuery

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

ModelCriteria
Extended by Thelia\Model\om\BaseAddressQuery

Direct known subclasses

Thelia\Model\AddressQuery
Abstract
Namespace: Thelia\Model\om
Package: propel\generator\Thelia\Model\om
Located at core/lib/Thelia/Model/om/BaseAddressQuery.php
Methods summary
public
# __construct( string $dbName = 'thelia', string $modelName = 'Thelia\\Model\\Address', string $modelAlias = null )

Initializes internal state of BaseAddressQuery object.

Initializes internal state of BaseAddressQuery object.

Parameters

$dbName
string
$dbName The dabase name
$modelName
string
$modelName The phpName of a model, e.g. 'Book'
$modelAlias
string
$modelAlias The alias for the model in this query, e.g. 'b'
public static Thelia\Model\AddressQuery
# create( string $modelAlias = null, Thelia\Model\AddressQuery|Criteria $criteria = null )

Returns a new AddressQuery object.

Returns a new AddressQuery object.

Parameters

$modelAlias
string
$modelAlias The alias of a model in the query
$criteria
Thelia\Model\AddressQuery|Criteria
$criteria Optional Criteria to build the query from

Returns

Thelia\Model\AddressQuery
public Thelia\Model\Address|Thelia\Model\Address[]|mixed
# findPk( mixed $key, PropelPDO $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.

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

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

Returns

Thelia\Model\Address|Thelia\Model\Address[]|mixed
the result, formatted by the current formatter
public Thelia\Model\Address
# findOneById( mixed $key, PropelPDO $con = null )

Alias of findPk to use instance pooling

Alias of findPk to use instance pooling

Parameters

$key
mixed
$key Primary key to use for the query
$con
PropelPDO
$con A connection object

Returns

Thelia\Model\Address
A model object, or null if the key is not found

Throws

PropelException
protected Thelia\Model\Address
# findPkSimple( mixed $key, PropelPDO $con )

Find object by primary key using raw SQL to go fast. Bypass doSelect() and the object formatter by using generated code.

Find object by primary key using raw SQL to go fast. Bypass doSelect() and the object formatter by using generated code.

Parameters

$key
mixed
$key Primary key to use for the query
$con
PropelPDO
$con A connection object

Returns

Thelia\Model\Address
A model object, or null if the key is not found

Throws

PropelException
protected Thelia\Model\Address|Thelia\Model\Address[]|mixed
# findPkComplex( mixed $key, PropelPDO $con )

Find object by primary key.

Find object by primary key.

Parameters

$key
mixed
$key Primary key to use for the query
$con
PropelPDO
$con A connection object

Returns

Thelia\Model\Address|Thelia\Model\Address[]|mixed
the result, formatted by the current formatter
public PropelObjectCollection|Thelia\Model\Address[]|mixed
# findPks( array $keys, PropelPDO $con = null )

Find objects by primary key

$objs = $c->findPks(array(12, 56, 832), $con);

Find objects by primary key

$objs = $c->findPks(array(12, 56, 832), $con);

Parameters

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

Returns

PropelObjectCollection|Thelia\Model\Address[]|mixed
the list of results, formatted by the current formatter
public Thelia\Model\AddressQuery
# filterByPrimaryKey( mixed $key )

Filter the query by primary key

Filter the query by primary key

Parameters

$key
mixed
$key Primary key to use for the query

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# filterByPrimaryKeys( array $keys )

Filter the query by a list of primary keys

Filter the query by a list of primary keys

Parameters

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

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# filterById( mixed $id = null, string $comparison = null )

Filter the query on the id column

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
$query->filterById(array('max' => 12)); // WHERE id <= 12

Parameters

$id
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.
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# filterByTitle( string $title = null, string $comparison = null )

Filter the query on the title column

Filter the query on the title column

Example usage:

$query->filterByTitle('fooValue');   // WHERE title = 'fooValue'
$query->filterByTitle('%fooValue%'); // WHERE title LIKE '%fooValue%'

Parameters

$title
string
$title The value to use as filter. Accepts wildcards (* and % trigger a LIKE)
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# filterByCustomerId( mixed $customerId = null, string $comparison = null )

Filter the query on the customer_id column

Filter the query on the customer_id column

Example usage:

$query->filterByCustomerId(1234); // WHERE customer_id = 1234
$query->filterByCustomerId(array(12, 34)); // WHERE customer_id IN (12, 34)
$query->filterByCustomerId(array('min' => 12)); // WHERE customer_id >= 12
$query->filterByCustomerId(array('max' => 12)); // WHERE customer_id <= 12

Parameters

$customerId
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.
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface

See

Thelia\Model\om\BaseAddressQuery::filterByCustomer()
public Thelia\Model\AddressQuery
# filterByCustomerTitleId( mixed $customerTitleId = null, string $comparison = null )

Filter the query on the customer_title_id column

Filter the query on the customer_title_id column

Example usage:

$query->filterByCustomerTitleId(1234); // WHERE customer_title_id = 1234
$query->filterByCustomerTitleId(array(12, 34)); // WHERE customer_title_id IN (12, 34)
$query->filterByCustomerTitleId(array('min' => 12)); // WHERE customer_title_id >= 12
$query->filterByCustomerTitleId(array('max' => 12)); // WHERE customer_title_id <= 12

Parameters

$customerTitleId
mixed
$customerTitleId 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.
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface

See

Thelia\Model\om\BaseAddressQuery::filterByCustomerTitle()
public Thelia\Model\AddressQuery
# filterByCompany( string $company = null, string $comparison = null )

Filter the query on the company column

Filter the query on the company column

Example usage:

$query->filterByCompany('fooValue');   // WHERE company = 'fooValue'
$query->filterByCompany('%fooValue%'); // WHERE company LIKE '%fooValue%'

Parameters

$company
string
$company The value to use as filter. Accepts wildcards (* and % trigger a LIKE)
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# filterByFirstname( string $firstname = null, string $comparison = null )

Filter the query on the firstname column

Filter the query on the firstname column

Example usage:

$query->filterByFirstname('fooValue');   // WHERE firstname = 'fooValue'
$query->filterByFirstname('%fooValue%'); // WHERE firstname LIKE '%fooValue%'

Parameters

$firstname
string
$firstname The value to use as filter. Accepts wildcards (* and % trigger a LIKE)
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# filterByLastname( string $lastname = null, string $comparison = null )

Filter the query on the lastname column

Filter the query on the lastname column

Example usage:

$query->filterByLastname('fooValue');   // WHERE lastname = 'fooValue'
$query->filterByLastname('%fooValue%'); // WHERE lastname LIKE '%fooValue%'

Parameters

$lastname
string
$lastname The value to use as filter. Accepts wildcards (* and % trigger a LIKE)
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# filterByAddress1( string $address1 = null, string $comparison = null )

Filter the query on the address1 column

Filter the query on the address1 column

Example usage:

$query->filterByAddress1('fooValue');   // WHERE address1 = 'fooValue'
$query->filterByAddress1('%fooValue%'); // WHERE address1 LIKE '%fooValue%'

Parameters

$address1
string
$address1 The value to use as filter. Accepts wildcards (* and % trigger a LIKE)
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# filterByAddress2( string $address2 = null, string $comparison = null )

Filter the query on the address2 column

Filter the query on the address2 column

Example usage:

$query->filterByAddress2('fooValue');   // WHERE address2 = 'fooValue'
$query->filterByAddress2('%fooValue%'); // WHERE address2 LIKE '%fooValue%'

Parameters

$address2
string
$address2 The value to use as filter. Accepts wildcards (* and % trigger a LIKE)
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# filterByAddress3( string $address3 = null, string $comparison = null )

Filter the query on the address3 column

Filter the query on the address3 column

Example usage:

$query->filterByAddress3('fooValue');   // WHERE address3 = 'fooValue'
$query->filterByAddress3('%fooValue%'); // WHERE address3 LIKE '%fooValue%'

Parameters

$address3
string
$address3 The value to use as filter. Accepts wildcards (* and % trigger a LIKE)
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# filterByZipcode( string $zipcode = null, string $comparison = null )

Filter the query on the zipcode column

Filter the query on the zipcode column

Example usage:

$query->filterByZipcode('fooValue');   // WHERE zipcode = 'fooValue'
$query->filterByZipcode('%fooValue%'); // WHERE zipcode LIKE '%fooValue%'

Parameters

$zipcode
string
$zipcode The value to use as filter. Accepts wildcards (* and % trigger a LIKE)
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# filterByCity( string $city = null, string $comparison = null )

Filter the query on the city column

Filter the query on the city column

Example usage:

$query->filterByCity('fooValue');   // WHERE city = 'fooValue'
$query->filterByCity('%fooValue%'); // WHERE city LIKE '%fooValue%'

Parameters

$city
string
$city The value to use as filter. Accepts wildcards (* and % trigger a LIKE)
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# filterByCountryId( mixed $countryId = null, string $comparison = null )

Filter the query on the country_id column

Filter the query on the country_id column

Example usage:

$query->filterByCountryId(1234); // WHERE country_id = 1234
$query->filterByCountryId(array(12, 34)); // WHERE country_id IN (12, 34)
$query->filterByCountryId(array('min' => 12)); // WHERE country_id >= 12
$query->filterByCountryId(array('max' => 12)); // WHERE country_id <= 12

Parameters

$countryId
mixed
$countryId 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.
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# filterByPhone( string $phone = null, string $comparison = null )

Filter the query on the phone column

Filter the query on the phone column

Example usage:

$query->filterByPhone('fooValue');   // WHERE phone = 'fooValue'
$query->filterByPhone('%fooValue%'); // WHERE phone LIKE '%fooValue%'

Parameters

$phone
string
$phone The value to use as filter. Accepts wildcards (* and % trigger a LIKE)
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# filterByCreatedAt( mixed $createdAt = null, string $comparison = null )

Filter the query on the created_at column

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'

Parameters

$createdAt
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.
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# filterByUpdatedAt( mixed $updatedAt = null, string $comparison = null )

Filter the query on the updated_at column

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'

Parameters

$updatedAt
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.
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# filterByCustomer( Thelia\Model\Customer|PropelObjectCollection $customer, string $comparison = null )

Filter the query by a related Customer object

Filter the query by a related Customer object

Parameters

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

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface

Throws

PropelException
- if the provided filter is invalid.
public Thelia\Model\AddressQuery
# joinCustomer( string $relationAlias = null, string $joinType = Thelia\Model\om\Criteria::INNER_JOIN )

Adds a JOIN clause to the query using the Customer relation

Adds a JOIN clause to the query using the Customer relation

Parameters

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

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\CustomerQuery
# useCustomerQuery( string $relationAlias = null, string $joinType = Thelia\Model\om\Criteria::INNER_JOIN )

Use the Customer relation Customer object

Use the Customer relation Customer object

Parameters

$relationAlias
string
$relationAlias optional alias for the relation, to be used as main alias in the secondary query
$joinType
string
$joinType Accepted values are null, 'left join', 'right join', 'inner join'

Returns

Thelia\Model\CustomerQuery
A secondary query class using the current class as primary query

See

useQuery()
public Thelia\Model\AddressQuery
# filterByCustomerTitle( Thelia\Model\CustomerTitle|PropelObjectCollection $customerTitle, string $comparison = null )

Filter the query by a related CustomerTitle object

Filter the query by a related CustomerTitle object

Parameters

$customerTitle
Thelia\Model\CustomerTitle|PropelObjectCollection
$customerTitle The related object(s) to use as filter
$comparison
string
$comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface

Throws

PropelException
- if the provided filter is invalid.
public Thelia\Model\AddressQuery
# joinCustomerTitle( string $relationAlias = null, string $joinType = Thelia\Model\om\Criteria::LEFT_JOIN )

Adds a JOIN clause to the query using the CustomerTitle relation

Adds a JOIN clause to the query using the CustomerTitle relation

Parameters

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

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\CustomerTitleQuery
# useCustomerTitleQuery( string $relationAlias = null, string $joinType = Thelia\Model\om\Criteria::LEFT_JOIN )

Use the CustomerTitle relation CustomerTitle object

Use the CustomerTitle relation CustomerTitle object

Parameters

$relationAlias
string
$relationAlias optional alias for the relation, to be used as main alias in the secondary query
$joinType
string
$joinType Accepted values are null, 'left join', 'right join', 'inner join'

Returns

Thelia\Model\CustomerTitleQuery
A secondary query class using the current class as primary query

See

useQuery()
public Thelia\Model\AddressQuery
# prune( Thelia\Model\Address $address = null )

Exclude object from result

Exclude object from result

Parameters

$address
Thelia\Model\Address
$address Object to remove from the list of results

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# recentlyUpdated( integer $nbDays = 7 )

Filter by the latest updated

Filter by the latest updated

Parameters

$nbDays
integer
$nbDays Maximum age of the latest update in days

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# lastUpdatedFirst( )

Order by update date desc

Order by update date desc

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# firstUpdatedFirst( )

Order by update date asc

Order by update date asc

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# recentlyCreated( integer $nbDays = 7 )

Filter by the latest created

Filter by the latest created

Parameters

$nbDays
integer
$nbDays Maximum age of in days

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# lastCreatedFirst( )

Order by create date desc

Order by create date desc

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
public Thelia\Model\AddressQuery
# firstCreatedFirst( )

Order by create date asc

Order by create date asc

Returns

Thelia\Model\AddressQuery
The current query, for fluid interface
Magic methods summary
public Thelia\Model\AddressQuery
# orderById( mixed $order = Thelia\Model\om\Criteria::ASC )

Order by the id column

Order by the id column

Parameters

$order
mixed
$order

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# orderByTitle( mixed $order = Thelia\Model\om\Criteria::ASC )

Order by the title column

Order by the title column

Parameters

$order
mixed
$order

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# orderByCustomerId( mixed $order = Thelia\Model\om\Criteria::ASC )

Order by the customer_id column

Order by the customer_id column

Parameters

$order
mixed
$order

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# orderByCustomerTitleId( mixed $order = Thelia\Model\om\Criteria::ASC )

Order by the customer_title_id column

Order by the customer_title_id column

Parameters

$order
mixed
$order

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# orderByCompany( mixed $order = Thelia\Model\om\Criteria::ASC )

Order by the company column

Order by the company column

Parameters

$order
mixed
$order

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# orderByFirstname( mixed $order = Thelia\Model\om\Criteria::ASC )

Order by the firstname column

Order by the firstname column

Parameters

$order
mixed
$order

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# orderByLastname( mixed $order = Thelia\Model\om\Criteria::ASC )

Order by the lastname column

Order by the lastname column

Parameters

$order
mixed
$order

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# orderByAddress1( mixed $order = Thelia\Model\om\Criteria::ASC )

Order by the address1 column

Order by the address1 column

Parameters

$order
mixed
$order

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# orderByAddress2( mixed $order = Thelia\Model\om\Criteria::ASC )

Order by the address2 column

Order by the address2 column

Parameters

$order
mixed
$order

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# orderByAddress3( mixed $order = Thelia\Model\om\Criteria::ASC )

Order by the address3 column

Order by the address3 column

Parameters

$order
mixed
$order

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# orderByZipcode( mixed $order = Thelia\Model\om\Criteria::ASC )

Order by the zipcode column

Order by the zipcode column

Parameters

$order
mixed
$order

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# orderByCity( mixed $order = Thelia\Model\om\Criteria::ASC )

Order by the city column

Order by the city column

Parameters

$order
mixed
$order

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# orderByCountryId( mixed $order = Thelia\Model\om\Criteria::ASC )

Order by the country_id column

Order by the country_id column

Parameters

$order
mixed
$order

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# orderByPhone( mixed $order = Thelia\Model\om\Criteria::ASC )

Order by the phone column

Order by the phone column

Parameters

$order
mixed
$order

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# orderByCreatedAt( mixed $order = Thelia\Model\om\Criteria::ASC )

Order by the created_at column

Order by the created_at column

Parameters

$order
mixed
$order

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# orderByUpdatedAt( mixed $order = Thelia\Model\om\Criteria::ASC )

Order by the updated_at column

Order by the updated_at column

Parameters

$order
mixed
$order

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# groupById( )

Group by the id column

Group by the id column

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# groupByTitle( )

Group by the title column

Group by the title column

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# groupByCustomerId( )

Group by the customer_id column

Group by the customer_id column

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# groupByCustomerTitleId( )

Group by the customer_title_id column

Group by the customer_title_id column

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# groupByCompany( )

Group by the company column

Group by the company column

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# groupByFirstname( )

Group by the firstname column

Group by the firstname column

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# groupByLastname( )

Group by the lastname column

Group by the lastname column

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# groupByAddress1( )

Group by the address1 column

Group by the address1 column

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# groupByAddress2( )

Group by the address2 column

Group by the address2 column

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# groupByAddress3( )

Group by the address3 column

Group by the address3 column

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# groupByZipcode( )

Group by the zipcode column

Group by the zipcode column

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# groupByCity( )

Group by the city column

Group by the city column

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# groupByCountryId( )

Group by the country_id column

Group by the country_id column

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# groupByPhone( )

Group by the phone column

Group by the phone column

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# groupByCreatedAt( )

Group by the created_at column

Group by the created_at column

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# groupByUpdatedAt( )

Group by the updated_at column

Group by the updated_at column

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# leftJoin( mixed $relation = )

Adds a LEFT JOIN clause to the query

Adds a LEFT JOIN clause to the query

Parameters

$relation
mixed
$relation

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# rightJoin( mixed $relation = )

Adds a RIGHT JOIN clause to the query

Adds a RIGHT JOIN clause to the query

Parameters

$relation
mixed
$relation

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# innerJoin( mixed $relation = )

Adds a INNER JOIN clause to the query

Adds a INNER JOIN clause to the query

Parameters

$relation
mixed
$relation

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# leftJoinCustomer( mixed $relationAlias = null )

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

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

Parameters

$relationAlias
mixed
$relationAlias

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# rightJoinCustomer( mixed $relationAlias = null )

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

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

Parameters

$relationAlias
mixed
$relationAlias

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# innerJoinCustomer( mixed $relationAlias = null )

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

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

Parameters

$relationAlias
mixed
$relationAlias

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# leftJoinCustomerTitle( mixed $relationAlias = null )

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

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

Parameters

$relationAlias
mixed
$relationAlias

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# rightJoinCustomerTitle( mixed $relationAlias = null )

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

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

Parameters

$relationAlias
mixed
$relationAlias

Returns

Thelia\Model\AddressQuery
public Thelia\Model\AddressQuery
# innerJoinCustomerTitle( mixed $relationAlias = null )

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

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

Parameters

$relationAlias
mixed
$relationAlias

Returns

Thelia\Model\AddressQuery
public Thelia\Model\Address
# findOne( PropelPDO $con = null )

Return the first Address matching the query

Return the first Address matching the query

Parameters

$con
PropelPDO
$con

Returns

Thelia\Model\Address
public Thelia\Model\Address
# findOneOrCreate( PropelPDO $con = null )

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

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

Parameters

$con
PropelPDO
$con

Returns

Thelia\Model\Address
public Thelia\Model\Address
# findOneByTitle( string $title = )

Return the first Address filtered by the title column

Return the first Address filtered by the title column

Parameters

$title
string
$title

Returns

Thelia\Model\Address
public Thelia\Model\Address
# findOneByCustomerId( integer $customer_id = )

Return the first Address filtered by the customer_id column

Return the first Address filtered by the customer_id column

Parameters

$customer_id
integer
$customer_id

Returns

Thelia\Model\Address
public Thelia\Model\Address
# findOneByCustomerTitleId( integer $customer_title_id = )

Return the first Address filtered by the customer_title_id column

Return the first Address filtered by the customer_title_id column

Parameters

$customer_title_id
integer
$customer_title_id

Returns

Thelia\Model\Address
public Thelia\Model\Address
# findOneByCompany( string $company = )

Return the first Address filtered by the company column

Return the first Address filtered by the company column

Parameters

$company
string
$company

Returns

Thelia\Model\Address
public Thelia\Model\Address
# findOneByFirstname( string $firstname = )

Return the first Address filtered by the firstname column

Return the first Address filtered by the firstname column

Parameters

$firstname
string
$firstname

Returns

Thelia\Model\Address
public Thelia\Model\Address
# findOneByLastname( string $lastname = )

Return the first Address filtered by the lastname column

Return the first Address filtered by the lastname column

Parameters

$lastname
string
$lastname

Returns

Thelia\Model\Address
public Thelia\Model\Address
# findOneByAddress1( string $address1 = )

Return the first Address filtered by the address1 column

Return the first Address filtered by the address1 column

Parameters

$address1
string
$address1

Returns

Thelia\Model\Address
public Thelia\Model\Address
# findOneByAddress2( string $address2 = )

Return the first Address filtered by the address2 column

Return the first Address filtered by the address2 column

Parameters

$address2
string
$address2

Returns

Thelia\Model\Address
public Thelia\Model\Address
# findOneByAddress3( string $address3 = )

Return the first Address filtered by the address3 column

Return the first Address filtered by the address3 column

Parameters

$address3
string
$address3

Returns

Thelia\Model\Address
public Thelia\Model\Address
# findOneByZipcode( string $zipcode = )

Return the first Address filtered by the zipcode column

Return the first Address filtered by the zipcode column

Parameters

$zipcode
string
$zipcode

Returns

Thelia\Model\Address
public Thelia\Model\Address
# findOneByCity( string $city = )

Return the first Address filtered by the city column

Return the first Address filtered by the city column

Parameters

$city
string
$city

Returns

Thelia\Model\Address
public Thelia\Model\Address
# findOneByCountryId( integer $country_id = )

Return the first Address filtered by the country_id column

Return the first Address filtered by the country_id column

Parameters

$country_id
integer
$country_id

Returns

Thelia\Model\Address
public Thelia\Model\Address
# findOneByPhone( string $phone = )

Return the first Address filtered by the phone column

Return the first Address filtered by the phone column

Parameters

$phone
string
$phone

Returns

Thelia\Model\Address
public Thelia\Model\Address
# findOneByCreatedAt( string $created_at = )

Return the first Address filtered by the created_at column

Return the first Address filtered by the created_at column

Parameters

$created_at
string
$created_at

Returns

Thelia\Model\Address
public Thelia\Model\Address
# findOneByUpdatedAt( string $updated_at = )

Return the first Address filtered by the updated_at column

Return the first Address filtered by the updated_at column

Parameters

$updated_at
string
$updated_at

Returns

Thelia\Model\Address
public array
# findById( integer $id = )

Return Address objects filtered by the id column

Return Address objects filtered by the id column

Parameters

$id
integer
$id

Returns

array
public array
# findByTitle( string $title = )

Return Address objects filtered by the title column

Return Address objects filtered by the title column

Parameters

$title
string
$title

Returns

array
public array
# findByCustomerId( integer $customer_id = )

Return Address objects filtered by the customer_id column

Return Address objects filtered by the customer_id column

Parameters

$customer_id
integer
$customer_id

Returns

array
public array
# findByCustomerTitleId( integer $customer_title_id = )

Return Address objects filtered by the customer_title_id column

Return Address objects filtered by the customer_title_id column

Parameters

$customer_title_id
integer
$customer_title_id

Returns

array
public array
# findByCompany( string $company = )

Return Address objects filtered by the company column

Return Address objects filtered by the company column

Parameters

$company
string
$company

Returns

array
public array
# findByFirstname( string $firstname = )

Return Address objects filtered by the firstname column

Return Address objects filtered by the firstname column

Parameters

$firstname
string
$firstname

Returns

array
public array
# findByLastname( string $lastname = )

Return Address objects filtered by the lastname column

Return Address objects filtered by the lastname column

Parameters

$lastname
string
$lastname

Returns

array
public array
# findByAddress1( string $address1 = )

Return Address objects filtered by the address1 column

Return Address objects filtered by the address1 column

Parameters

$address1
string
$address1

Returns

array
public array
# findByAddress2( string $address2 = )

Return Address objects filtered by the address2 column

Return Address objects filtered by the address2 column

Parameters

$address2
string
$address2

Returns

array
public array
# findByAddress3( string $address3 = )

Return Address objects filtered by the address3 column

Return Address objects filtered by the address3 column

Parameters

$address3
string
$address3

Returns

array
public array
# findByZipcode( string $zipcode = )

Return Address objects filtered by the zipcode column

Return Address objects filtered by the zipcode column

Parameters

$zipcode
string
$zipcode

Returns

array
public array
# findByCity( string $city = )

Return Address objects filtered by the city column

Return Address objects filtered by the city column

Parameters

$city
string
$city

Returns

array
public array
# findByCountryId( integer $country_id = )

Return Address objects filtered by the country_id column

Return Address objects filtered by the country_id column

Parameters

$country_id
integer
$country_id

Returns

array
public array
# findByPhone( string $phone = )

Return Address objects filtered by the phone column

Return Address objects filtered by the phone column

Parameters

$phone
string
$phone

Returns

array
public array
# findByCreatedAt( string $created_at = )

Return Address objects filtered by the created_at column

Return Address objects filtered by the created_at column

Parameters

$created_at
string
$created_at

Returns

array
public array
# findByUpdatedAt( string $updated_at = )

Return Address objects filtered by the updated_at column

Return Address objects filtered by the updated_at column

Parameters

$updated_at
string
$updated_at

Returns

array
thelia API documentation generated by ApiGen 2.8.0