Customer
class Customer implements ActiveRecordInterface
Constants
TABLE_MAP |
TableMap class name |
Methods
Applies default values to this object.
Initializes internal state of Thelia\Model\Base\Customer object.
Returns whether the object has been modified.
Has specified column been modified?
Get the columns that have been modified in this object.
Returns whether the object has ever been saved. This will be false, if the object was retrieved from storage or was created and then saved.
Setter for the isNew attribute. This method will be called by Propel-generated children and objects.
Whether this object has been deleted.
Specify whether this object has been deleted.
Sets the modified state for the object to be false.
Compares this with another Customer
instance. If
obj
is an instance of Customer
, delegates to
equals(Customer)
. Otherwise, returns false
.
If the primary key is not null, return the hashcode of the primary key. Otherwise, return the hash code of the object.
Get the associative array of the virtual columns in this object
Checks the existence of a virtual column in this object
Get the value of a virtual column in this object
Set the value of a virtual column in this object
Populate the current object from a string, using a given parser format
$book = new Book();
$book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}');
Export the current object properties to a string, using a given parser format
$book = BookQuery::create()->findPk(9012);
echo $book->exportTo('JSON');
=> {"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}');
Clean up internal collections prior to serializing Avoids recursive loops that turn into segmentation faults when serializing
Get the [id] column value.
Get the [title_id] column value.
Get the [lang_id] column value.
Get the [ref] column value.
Get the [firstname] column value.
Get the [lastname] column value.
Get the [email] column value.
Get the [password] column value.
Get the [algo] column value.
Get the [reseller] column value.
Get the [sponsor] column value.
Get the [discount] column value.
Get the [remembermetoken] column value.
Get the [remembermeserial] column value.
Get the [enable] column value.
Get the [confirmation_token] column value.
Get the [optionally formatted] temporal [created_at] column value.
Get the [optionally formatted] temporal [updated_at] column value.
Get the [version] column value.
Get the [optionally formatted] temporal [versioncreatedat] column value.
Get the [versioncreatedby] column value.
Set the value of [title_id] column.
Set the value of [firstname] column.
Set the value of [lastname] column.
Set the value of [password] column.
Set the value of [reseller] column.
Set the value of [sponsor] column.
Set the value of [discount] column.
Set the value of [remembermetoken] column.
Set the value of [remembermeserial] column.
Set the value of [confirmation_token] column.
Sets the value of [created_at] column to a normalized version of the date/time value specified.
Sets the value of [updated_at] column to a normalized version of the date/time value specified.
Set the value of [version] column.
Sets the value of [versioncreatedat] column to a normalized version of the date/time value specified.
Set the value of [versioncreatedby] column.
Indicates whether the columns in this object are only set to default values.
Hydrates (populates) the object variables with values from the database resultset.
Checks and repairs the internal consistency of the object.
Reloads this object from datastore based on primary key and (optionally) resets all associated objects.
Removes this object from datastore and sets delete attribute.
Persists this object to the database.
Retrieves a field from the object by name passed in as a string.
Retrieves a field from the object by Position as specified in the xml schema.
Exports the object as an array.
Sets a field from the object by name passed in as a string.
Sets a field from the object by Position as specified in the xml schema.
Populates the object using an array.
Build a Criteria object containing the values of all modified columns in this object.
Builds a Criteria object containing the primary key for this object.
Returns the primary key for this object (row).
Generic method to set the primary key (id column).
Returns true if the primary key for this object is null.
Sets contents of passed object to values from current object.
Makes a copy of this object that will be inserted as a new row in table when saved.
Declares an association between this object and a ChildCustomerTitle object.
Get the associated ChildCustomerTitle object
Declares an association between this object and a ChildLang object.
Get the associated ChildLang object
Initializes a collection based on the name of a relation.
Clears out the collAddresses collection
Reset is the collAddresses collection loaded partially.
Initializes the collAddresses collection.
Gets an array of ChildAddress objects which contain a foreign key that references this object.
Sets a collection of Address objects related by a one-to-many relationship to the current object.
Returns the number of related Address objects.
Method called to associate a ChildAddress object to this object through the ChildAddress foreign key attribute.
If this collection has already been initialized with an identical criteria, it returns the collection.
If this collection has already been initialized with an identical criteria, it returns the collection.
If this collection has already been initialized with an identical criteria, it returns the collection.
Clears out the collOrders collection
Reset is the collOrders collection loaded partially.
Initializes the collOrders collection.
Gets an array of ChildOrder objects which contain a foreign key that references this object.
Sets a collection of Order objects related by a one-to-many relationship to the current object.
Returns the number of related Order objects.
Method called to associate a ChildOrder object to this object through the ChildOrder foreign key attribute.
If this collection has already been initialized with an identical criteria, it returns the collection.
If this collection has already been initialized with an identical criteria, it returns the collection.
If this collection has already been initialized with an identical criteria, it returns the collection.
If this collection has already been initialized with an identical criteria, it returns the collection.
If this collection has already been initialized with an identical criteria, it returns the collection.
If this collection has already been initialized with an identical criteria, it returns the collection.
If this collection has already been initialized with an identical criteria, it returns the collection.
Clears out the collCarts collection
Reset is the collCarts collection loaded partially.
Initializes the collCarts collection.
Gets an array of ChildCart objects which contain a foreign key that references this object.
Sets a collection of Cart objects related by a one-to-many relationship to the current object.
Returns the number of related Cart objects.
Method called to associate a ChildCart object to this object through the ChildCart foreign key attribute.
If this collection has already been initialized with an identical criteria, it returns the collection.
If this collection has already been initialized with an identical criteria, it returns the collection.
If this collection has already been initialized with an identical criteria, it returns the collection.
Clears out the collCouponCustomerCounts collection
Reset is the collCouponCustomerCounts collection loaded partially.
Initializes the collCouponCustomerCounts collection.
Gets an array of ChildCouponCustomerCount objects which contain a foreign key that references this object.
Sets a collection of CouponCustomerCount objects related by a one-to-many relationship to the current object.
Returns the number of related CouponCustomerCount objects.
Method called to associate a ChildCouponCustomerCount object to this object through the ChildCouponCustomerCount foreign key attribute.
If this collection has already been initialized with an identical criteria, it returns the collection.
Clears out the collCustomerVersions collection
Reset is the collCustomerVersions collection loaded partially.
Initializes the collCustomerVersions collection.
Gets an array of ChildCustomerVersion objects which contain a foreign key that references this object.
Sets a collection of CustomerVersion objects related by a one-to-many relationship to the current object.
Returns the number of related CustomerVersion objects.
Method called to associate a ChildCustomerVersion object to this object through the ChildCustomerVersion foreign key attribute.
Clears out the collCoupons collection
Initializes the collCoupons collection.
Gets a collection of ChildCoupon objects related by a many-to-many relationship to the current object by way of the couponcustomercount cross-reference table.
Sets a collection of Coupon objects related by a many-to-many relationship to the current object by way of the couponcustomercount cross-reference table.
Gets the number of ChildCoupon objects related by a many-to-many relationship to the current object by way of the couponcustomercount cross-reference table.
Associate a ChildCoupon object to this object through the couponcustomercount cross reference table.
Remove a ChildCoupon object to this object through the couponcustomercount cross reference table.
Clears the current object and sets all attributes to their default values
Resets all references to other model objects or collections of model objects.
Return the string representation of this object
Mark the current object so that the update date doesn't get updated during next save
Enforce a new Version of this object upon next save.
Checks whether the current state must be recorded as a version
Creates a version of the current object and saves it.
Sets the properties of the current object to the value they had at a specific version
Sets the properties of the current object to the value they had at a specific version
Gets the latest persisted version number for the current object
Checks whether the current object is the latest one
Retrieves a version object for this entity and a version number
Gets all the versions of this object, in incremental order
Compares the current object with another of its version.
Compares two versions of the current object.
retrieve the last $number versions.
Code to be run before persisting the object
Code to be run after persisting the object
Code to be run before inserting to database
Code to be run after inserting to database
Code to be run before updating the object in database
Code to be run after updating the object in database
Code to be run before deleting the object in database
Code to be run after deleting the object in database
Derived method to catches calls to undefined methods.
Details
at line 309
applyDefaultValues()
Applies default values to this object.
This method should be called from the object's constructor (or equivalent initialization method).
at line 320
__construct()
Initializes internal state of Thelia\Model\Base\Customer object.
at line 330
boolean
isModified()
Returns whether the object has been modified.
at line 341
boolean
isColumnModified(
string $col)
Has specified column been modified?
at line 350
array
getModifiedColumns()
Get the columns that have been modified in this object.
at line 362
boolean
isNew()
Returns whether the object has ever been saved. This will be false, if the object was retrieved from storage or was created and then saved.
at line 373
setNew(
boolean $b)
Setter for the isNew attribute. This method will be called by Propel-generated children and objects.
at line 382
boolean
isDeleted()
Whether this object has been deleted.
at line 392
void
setDeleted(
boolean $b)
Specify whether this object has been deleted.
at line 402
void
resetModified(
string $col = null)
Sets the modified state for the object to be false.
at line 421
boolean
equals(
mixed $obj)
Compares this with another Customer
instance. If
obj
is an instance of Customer
, delegates to
equals(Customer)
. Otherwise, returns false
.
at line 446
int
hashCode()
If the primary key is not null, return the hashcode of the primary key. Otherwise, return the hash code of the object.
at line 460
array
getVirtualColumns()
Get the associative array of the virtual columns in this object
at line 471
boolean
hasVirtualColumn(
string $name)
Checks the existence of a virtual column in this object
at line 484
mixed
getVirtualColumn(
string $name)
Get the value of a virtual column in this object
at line 501
Customer
setVirtualColumn(
string $name,
mixed $value)
Set the value of a virtual column in this object
at line 533
Customer
importFrom(
mixed $parser,
string $data)
Populate the current object from a string, using a given parser format
$book = new Book();
$book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}');
at line 556
string
exportTo(
mixed $parser,
boolean $includeLazyLoadColumns = true)
Export the current object properties to a string, using a given parser format
$book = BookQuery::create()->findPk(9012);
echo $book->exportTo('JSON');
=> {"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}');
at line 569
__sleep()
Clean up internal collections prior to serializing Avoids recursive loops that turn into segmentation faults when serializing
at line 581
int
getId()
Get the [id] column value.
at line 592
int
getTitleId()
Get the [title_id] column value.
at line 603
int
getLangId()
Get the [lang_id] column value.
at line 614
string
getRef()
Get the [ref] column value.
at line 625
string
getFirstname()
Get the [firstname] column value.
at line 636
string
getLastname()
Get the [lastname] column value.
at line 647
string
getEmail()
Get the [email] column value.
at line 658
string
getPassword()
Get the [password] column value.
at line 669
string
getAlgo()
Get the [algo] column value.
at line 680
int
getReseller()
Get the [reseller] column value.
at line 691
string
getSponsor()
Get the [sponsor] column value.
at line 702
string
getDiscount()
Get the [discount] column value.
at line 713
string
getRememberMeToken()
Get the [remembermetoken] column value.
at line 724
string
getRememberMeSerial()
Get the [remembermeserial] column value.
at line 735
int
getEnable()
Get the [enable] column value.
at line 746
string
getConfirmationToken()
Get the [confirmation_token] column value.
at line 763
mixed
getCreatedAt(
string $format = NULL)
Get the [optionally formatted] temporal [created_at] column value.
at line 783
mixed
getUpdatedAt(
string $format = NULL)
Get the [optionally formatted] temporal [updated_at] column value.
at line 797
int
getVersion()
Get the [version] column value.
at line 814
mixed
getVersionCreatedAt(
string $format = NULL)
Get the [optionally formatted] temporal [versioncreatedat] column value.
at line 828
string
getVersionCreatedBy()
Get the [versioncreatedby] column value.
at line 840
Customer
setId(
int $v)
Set the value of [id] column.
at line 861
Customer
setTitleId(
int $v)
Set the value of [title_id] column.
at line 886
Customer
setLangId(
int $v)
Set the value of [lang_id] column.
at line 911
Customer
setRef(
string $v)
Set the value of [ref] column.
at line 932
Customer
setFirstname(
string $v)
Set the value of [firstname] column.
at line 953
Customer
setLastname(
string $v)
Set the value of [lastname] column.
at line 974
Customer
setEmail(
string $v)
Set the value of [email] column.
at line 995
Customer
setPassword(
string $v)
Set the value of [password] column.
at line 1016
Customer
setAlgo(
string $v)
Set the value of [algo] column.
at line 1037
Customer
setReseller(
int $v)
Set the value of [reseller] column.
at line 1058
Customer
setSponsor(
string $v)
Set the value of [sponsor] column.
at line 1079
Customer
setDiscount(
string $v)
Set the value of [discount] column.
at line 1100
Customer
setRememberMeToken(
string $v)
Set the value of [remembermetoken] column.
at line 1121
Customer
setRememberMeSerial(
string $v)
Set the value of [remembermeserial] column.
at line 1142
Customer
setEnable(
int $v)
Set the value of [enable] column.
at line 1163
Customer
setConfirmationToken(
string $v)
Set the value of [confirmation_token] column.
at line 1185
Customer
setCreatedAt(
mixed $v)
Sets the value of [created_at] column to a normalized version of the date/time value specified.
at line 1206
Customer
setUpdatedAt(
mixed $v)
Sets the value of [updated_at] column to a normalized version of the date/time value specified.
at line 1226
Customer
setVersion(
int $v)
Set the value of [version] column.
at line 1248
Customer
setVersionCreatedAt(
mixed $v)
Sets the value of [versioncreatedat] column to a normalized version of the date/time value specified.
at line 1268
Customer
setVersionCreatedBy(
string $v)
Set the value of [versioncreatedby] column.
at line 1291
boolean
hasOnlyDefaultValues()
Indicates whether the columns in this object are only set to default values.
This method can be used in conjunction with isModified() to indicate whether an object is both modified and has some values set which are non-default.
at line 1327
int
hydrate(
array $row,
int $startcol,
boolean $rehydrate = false,
string $indexType = TableMap::TYPE_NUM)
Hydrates (populates) the object variables with values from the database resultset.
An offset (0-based "start column") is specified so that objects can be hydrated with a subset of the columns in the resultset rows. This is needed, for example, for results of JOIN queries where the resultset row includes columns from two or more tables.
at line 1431
ensureConsistency()
Checks and repairs the internal consistency of the object.
This method is executed after an already-instantiated object is re-hydrated from the database. It exists to check any foreign keys to make sure that the objects related to the current object are correct based on foreign key.
You can override this method in the stub class, but you should always invoke the base method from the overridden method (i.e. parent::ensureConsistency()), in case your model changes.
at line 1451
void
reload(
boolean $deep = false,
ConnectionInterface $con = null)
Reloads this object from datastore based on primary key and (optionally) resets all associated objects.
This will only work if the object has been saved and has a valid primary key set.
at line 1503
void
delete(
ConnectionInterface $con = null)
Removes this object from datastore and sets delete attribute.
at line 1545
int
save(
ConnectionInterface $con = null)
Persists this object to the database.
If the object is new, it inserts it; otherwise an update is performed. All modified related objects will also be persisted in the doSave() method. This method wraps all precipitate database operations in a single transaction.
at line 1974
mixed
getByName(
string $name,
string $type = TableMap::TYPE_PHPNAME)
Retrieves a field from the object by name passed in as a string.
at line 1989
mixed
getByPosition(
int $pos)
Retrieves a field from the object by Position as specified in the xml schema.
Zero-based.
at line 2076
array
toArray(
string $keyType = TableMap::TYPE_PHPNAME,
boolean $includeLazyLoadColumns = true,
array $alreadyDumpedObjects = array(),
boolean $includeForeignObjects = false)
Exports the object as an array.
You can specify the key type of the array by passing one of the class type constants.
at line 2149
void
setByName(
string $name,
mixed $value,
string $type = TableMap::TYPE_PHPNAME)
Sets a field from the object by name passed in as a string.
at line 2164
void
setByPosition(
int $pos,
mixed $value)
Sets a field from the object by Position as specified in the xml schema.
Zero-based.
at line 2250
void
fromArray(
array $arr,
string $keyType = TableMap::TYPE_PHPNAME)
Populates the object using an array.
This is particularly useful when populating an object from one of the request arrays (e.g. $_POST). This method goes through the column names, checking to see whether a matching key exists in populated array. If so the setByName() method is called for that column.
You can specify the key type of the array by additionally passing one of the class type constants TableMap::TYPEPHPNAME, TableMap::TYPESTUDLYPHPNAME, TableMap::TYPECOLNAME, TableMap::TYPEFIELDNAME, TableMap::TYPENUM. The default key type is the column's TableMap::TYPEPHPNAME.
at line 2282
Criteria
buildCriteria()
Build a Criteria object containing the values of all modified columns in this object.
at line 2319
Criteria
buildPkeyCriteria()
Builds a Criteria object containing the primary key for this object.
Unlike buildCriteria() this method includes the primary key values regardless of whether or not they have been modified.
at line 2331
int
getPrimaryKey()
Returns the primary key for this object (row).
at line 2342
void
setPrimaryKey(
int $key)
Generic method to set the primary key (id column).
at line 2351
boolean
isPrimaryKeyNull()
Returns true if the primary key for this object is null.
at line 2368
copyInto(
object $copyObj,
boolean $deepCopy = false,
boolean $makeNew = true)
Sets contents of passed object to values from current object.
If desired, this method can also make copies of all associated (fkey referrers) objects.
at line 2446
Customer
copy(
boolean $deepCopy = false)
Makes a copy of this object that will be inserted as a new row in table when saved.
It creates a new object filling in the simple attributes, but skipping any primary keys that are defined for the table.
If desired, this method can also make copies of all associated (fkey referrers) objects.
at line 2463
Customer
setCustomerTitle(
CustomerTitle $v = null)
Declares an association between this object and a ChildCustomerTitle object.
at line 2491
CustomerTitle
getCustomerTitle(
ConnectionInterface $con = null)
Get the associated ChildCustomerTitle object
at line 2514
Customer
setLangModel(
Lang $v = null)
Declares an association between this object and a ChildLang object.
at line 2542
Lang
getLangModel(
ConnectionInterface $con = null)
Get the associated ChildLang object
at line 2567
void
initRelation(
string $relationName)
Initializes a collection based on the name of a relation.
Avoids crafting an 'init[$relationName]s' method name that wouldn't work when StandardEnglishPluralizer is used.
at line 2595
void
clearAddresses()
Clears out the collAddresses collection
This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method.
at line 2603
resetPartialAddresses($v = true)
Reset is the collAddresses collection loaded partially.
at line 2620
void
initAddresses(
boolean $overrideExisting = true)
Initializes the collAddresses collection.
By default this just sets the collAddresses collection to an empty array (like clearcollAddresses()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
at line 2643
Collection|Address[]
getAddresses(
Criteria $criteria = null,
ConnectionInterface $con = null)
Gets an array of ChildAddress objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildCustomer is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
at line 2699
Customer
setAddresses(
Collection $addresses,
ConnectionInterface $con = null)
Sets a collection of Address objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
at line 2730
int
countAddresses(
Criteria $criteria = null,
boolean $distinct = false,
ConnectionInterface $con = null)
Returns the number of related Address objects.
at line 2762
Customer
addAddress(
Address $l)
Method called to associate a ChildAddress object to this object through the ChildAddress foreign key attribute.
at line 2821
Collection|Address[]
getAddressesJoinCustomerTitle(
Criteria $criteria = null,
ConnectionInterface $con = null,
string $joinBehavior = Criteria::LEFT_JOIN)
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Customer is new, it will return an empty collection; or if this Customer has previously been saved, it will retrieve related Addresses from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Customer.
at line 2846
Collection|Address[]
getAddressesJoinCountry(
Criteria $criteria = null,
ConnectionInterface $con = null,
string $joinBehavior = Criteria::LEFT_JOIN)
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Customer is new, it will return an empty collection; or if this Customer has previously been saved, it will retrieve related Addresses from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Customer.
at line 2871
Collection|Address[]
getAddressesJoinState(
Criteria $criteria = null,
ConnectionInterface $con = null,
string $joinBehavior = Criteria::LEFT_JOIN)
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Customer is new, it will return an empty collection; or if this Customer has previously been saved, it will retrieve related Addresses from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Customer.
at line 2888
void
clearOrders()
Clears out the collOrders collection
This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method.
at line 2896
resetPartialOrders($v = true)
Reset is the collOrders collection loaded partially.
at line 2913
void
initOrders(
boolean $overrideExisting = true)
Initializes the collOrders collection.
By default this just sets the collOrders collection to an empty array (like clearcollOrders()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
at line 2936
Collection|Order[]
getOrders(
Criteria $criteria = null,
ConnectionInterface $con = null)
Gets an array of ChildOrder objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildCustomer is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
at line 2992
Customer
setOrders(
Collection $orders,
ConnectionInterface $con = null)
Sets a collection of Order objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
at line 3023
int
countOrders(
Criteria $criteria = null,
boolean $distinct = false,
ConnectionInterface $con = null)
Returns the number of related Order objects.
at line 3055
Customer
addOrder(
Order $l)
Method called to associate a ChildOrder object to this object through the ChildOrder foreign key attribute.
at line 3114
Collection|Order[]
getOrdersJoinCurrency(
Criteria $criteria = null,
ConnectionInterface $con = null,
string $joinBehavior = Criteria::LEFT_JOIN)
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Customer is new, it will return an empty collection; or if this Customer has previously been saved, it will retrieve related Orders from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Customer.
at line 3139
Collection|Order[]
getOrdersJoinOrderAddressRelatedByInvoiceOrderAddressId(
Criteria $criteria = null,
ConnectionInterface $con = null,
string $joinBehavior = Criteria::LEFT_JOIN)
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Customer is new, it will return an empty collection; or if this Customer has previously been saved, it will retrieve related Orders from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Customer.
at line 3164
Collection|Order[]
getOrdersJoinOrderAddressRelatedByDeliveryOrderAddressId(
Criteria $criteria = null,
ConnectionInterface $con = null,
string $joinBehavior = Criteria::LEFT_JOIN)
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Customer is new, it will return an empty collection; or if this Customer has previously been saved, it will retrieve related Orders from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Customer.
at line 3189
Collection|Order[]
getOrdersJoinOrderStatus(
Criteria $criteria = null,
ConnectionInterface $con = null,
string $joinBehavior = Criteria::LEFT_JOIN)
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Customer is new, it will return an empty collection; or if this Customer has previously been saved, it will retrieve related Orders from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Customer.
at line 3214
Collection|Order[]
getOrdersJoinModuleRelatedByPaymentModuleId(
Criteria $criteria = null,
ConnectionInterface $con = null,
string $joinBehavior = Criteria::LEFT_JOIN)
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Customer is new, it will return an empty collection; or if this Customer has previously been saved, it will retrieve related Orders from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Customer.
at line 3239
Collection|Order[]
getOrdersJoinModuleRelatedByDeliveryModuleId(
Criteria $criteria = null,
ConnectionInterface $con = null,
string $joinBehavior = Criteria::LEFT_JOIN)
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Customer is new, it will return an empty collection; or if this Customer has previously been saved, it will retrieve related Orders from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Customer.
at line 3264
Collection|Order[]
getOrdersJoinLang(
Criteria $criteria = null,
ConnectionInterface $con = null,
string $joinBehavior = Criteria::LEFT_JOIN)
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Customer is new, it will return an empty collection; or if this Customer has previously been saved, it will retrieve related Orders from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Customer.
at line 3281
void
clearCarts()
Clears out the collCarts collection
This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method.
at line 3289
resetPartialCarts($v = true)
Reset is the collCarts collection loaded partially.
at line 3306
void
initCarts(
boolean $overrideExisting = true)
Initializes the collCarts collection.
By default this just sets the collCarts collection to an empty array (like clearcollCarts()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
at line 3329
Collection|Cart[]
getCarts(
Criteria $criteria = null,
ConnectionInterface $con = null)
Gets an array of ChildCart objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildCustomer is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
at line 3385
Customer
setCarts(
Collection $carts,
ConnectionInterface $con = null)
Sets a collection of Cart objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
at line 3416
int
countCarts(
Criteria $criteria = null,
boolean $distinct = false,
ConnectionInterface $con = null)
Returns the number of related Cart objects.
at line 3448
Customer
addCart(
Cart $l)
Method called to associate a ChildCart object to this object through the ChildCart foreign key attribute.
at line 3507
Collection|Cart[]
getCartsJoinAddressRelatedByAddressDeliveryId(
Criteria $criteria = null,
ConnectionInterface $con = null,
string $joinBehavior = Criteria::LEFT_JOIN)
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Customer is new, it will return an empty collection; or if this Customer has previously been saved, it will retrieve related Carts from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Customer.
at line 3532
Collection|Cart[]
getCartsJoinAddressRelatedByAddressInvoiceId(
Criteria $criteria = null,
ConnectionInterface $con = null,
string $joinBehavior = Criteria::LEFT_JOIN)
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Customer is new, it will return an empty collection; or if this Customer has previously been saved, it will retrieve related Carts from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Customer.
at line 3557
Collection|Cart[]
getCartsJoinCurrency(
Criteria $criteria = null,
ConnectionInterface $con = null,
string $joinBehavior = Criteria::LEFT_JOIN)
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Customer is new, it will return an empty collection; or if this Customer has previously been saved, it will retrieve related Carts from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Customer.
at line 3574
void
clearCouponCustomerCounts()
Clears out the collCouponCustomerCounts collection
This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method.
at line 3582
resetPartialCouponCustomerCounts($v = true)
Reset is the collCouponCustomerCounts collection loaded partially.
at line 3599
void
initCouponCustomerCounts(
boolean $overrideExisting = true)
Initializes the collCouponCustomerCounts collection.
By default this just sets the collCouponCustomerCounts collection to an empty array (like clearcollCouponCustomerCounts()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
at line 3622
Collection|CouponCustomerCount[]
getCouponCustomerCounts(
Criteria $criteria = null,
ConnectionInterface $con = null)
Gets an array of ChildCouponCustomerCount objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildCustomer is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
at line 3678
Customer
setCouponCustomerCounts(
Collection $couponCustomerCounts,
ConnectionInterface $con = null)
Sets a collection of CouponCustomerCount objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
at line 3712
int
countCouponCustomerCounts(
Criteria $criteria = null,
boolean $distinct = false,
ConnectionInterface $con = null)
Returns the number of related CouponCustomerCount objects.
at line 3744
Customer
addCouponCustomerCount(
CouponCustomerCount $l)
Method called to associate a ChildCouponCustomerCount object to this object through the ChildCouponCustomerCount foreign key attribute.
at line 3771
Customer
removeCouponCustomerCount(
CouponCustomerCount $couponCustomerCount)
at line 3803
Collection|CouponCustomerCount[]
getCouponCustomerCountsJoinCoupon(
Criteria $criteria = null,
ConnectionInterface $con = null,
string $joinBehavior = Criteria::LEFT_JOIN)
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Customer is new, it will return an empty collection; or if this Customer has previously been saved, it will retrieve related CouponCustomerCounts from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Customer.
at line 3820
void
clearCustomerVersions()
Clears out the collCustomerVersions collection
This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method.
at line 3828
resetPartialCustomerVersions($v = true)
Reset is the collCustomerVersions collection loaded partially.
at line 3845
void
initCustomerVersions(
boolean $overrideExisting = true)
Initializes the collCustomerVersions collection.
By default this just sets the collCustomerVersions collection to an empty array (like clearcollCustomerVersions()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
at line 3868
Collection|CustomerVersion[]
getCustomerVersions(
Criteria $criteria = null,
ConnectionInterface $con = null)
Gets an array of ChildCustomerVersion objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildCustomer is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
at line 3924
Customer
setCustomerVersions(
Collection $customerVersions,
ConnectionInterface $con = null)
Sets a collection of CustomerVersion objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
at line 3958
int
countCustomerVersions(
Criteria $criteria = null,
boolean $distinct = false,
ConnectionInterface $con = null)
Returns the number of related CustomerVersion objects.
at line 3990
Customer
addCustomerVersion(
CustomerVersion $l)
Method called to associate a ChildCustomerVersion object to this object through the ChildCustomerVersion foreign key attribute.
at line 4017
Customer
removeCustomerVersion(
CustomerVersion $customerVersion)
at line 4041
void
clearCoupons()
Clears out the collCoupons collection
This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method.
at line 4056
void
initCoupons()
Initializes the collCoupons collection.
By default this just sets the collCoupons collection to an empty collection (like clearCoupons()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
at line 4077
ObjectCollection|Coupon[]
getCoupons(
Criteria $criteria = null,
ConnectionInterface $con = null)
Gets a collection of ChildCoupon objects related by a many-to-many relationship to the current object by way of the couponcustomercount cross-reference table.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildCustomer is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
at line 4107
Customer
setCoupons(
Collection $coupons,
ConnectionInterface $con = null)
Sets a collection of Coupon objects related by a many-to-many relationship to the current object by way of the couponcustomercount cross-reference table.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
at line 4135
int
countCoupons(
Criteria $criteria = null,
boolean $distinct = false,
ConnectionInterface $con = null)
Gets the number of ChildCoupon objects related by a many-to-many relationship to the current object by way of the couponcustomercount cross-reference table.
at line 4162
Customer
addCoupon(
Coupon $coupon)
Associate a ChildCoupon object to this object through the couponcustomercount cross reference table.
at line 4199
Customer
removeCoupon(
Coupon $coupon)
Remove a ChildCoupon object to this object through the couponcustomercount cross reference table.
at line 4218
clear()
Clears the current object and sets all attributes to their default values
at line 4258
clearAllReferences(
boolean $deep = false)
Resets all references to other model objects or collections of model objects.
This method is a user-space workaround for PHP's inability to garbage collect objects with circular references (even in PHP 5.3). This is currently necessary when using Propel in certain daemon or large-volume/high-memory operations.
at line 4308
string
__toString()
Return the string representation of this object
at line 4320
Customer
keepUpdateDateUnchanged()
Mark the current object so that the update date doesn't get updated during next save
at line 4334
Customer
enforceVersioning()
Enforce a new Version of this object upon next save.
at line 4346
boolean
isVersioningNecessary($con = null)
Checks whether the current state must be recorded as a version
at line 4381
CustomerVersion
addVersion(
ConnectionInterface $con = null)
Creates a version of the current object and saves it.
at line 4425
Customer
toVersion(
integer $versionNumber,
ConnectionInterface $con = null)
Sets the properties of the current object to the value they had at a specific version
at line 4445
Customer
populateFromVersion(
CustomerVersion $version,
ConnectionInterface $con = null,
array $loadedObjects = array())
Sets the properties of the current object to the value they had at a specific version
at line 4502
integer
getLastVersionNumber(
ConnectionInterface $con = null)
Gets the latest persisted version number for the current object
at line 4522
Boolean
isLastVersion(
ConnectionInterface $con = null)
Checks whether the current object is the latest one
at line 4535
CustomerVersion
getOneVersion(
integer $versionNumber,
ConnectionInterface $con = null)
Retrieves a version object for this entity and a version number
at line 4550
ObjectCollection
getAllVersions(
ConnectionInterface $con = null)
Gets all the versions of this object, in incremental order
at line 4575
array
compareVersion(
integer $versionNumber,
string $keys = 'columns',
ConnectionInterface $con = null,
array $ignoredColumns = array())
Compares the current object with another of its version.
print_r($book->compareVersion(1));
=> array(
'1' => array('Title' => 'Book title at version 1'),
'2' => array('Title' => 'Book title at version 2')
);
at line 4601
array
compareVersions(
integer $fromVersionNumber,
integer $toVersionNumber,
string $keys = 'columns',
ConnectionInterface $con = null,
array $ignoredColumns = array())
Compares two versions of the current object.
print_r($book->compareVersions(1, 2));
=> array(
'1' => array('Title' => 'Book title at version 1'),
'2' => array('Title' => 'Book title at version 2')
);
at line 4664
PropelCollection|array
getLastVersions($number = 10, $criteria = null, $con = null)
retrieve the last $number versions.
at line 4677
boolean
preSave(
ConnectionInterface $con = null)
Code to be run before persisting the object
at line 4686
postSave(
ConnectionInterface $con = null)
Code to be run after persisting the object
at line 4696
boolean
preInsert(
ConnectionInterface $con = null)
Code to be run before inserting to database
at line 4705
postInsert(
ConnectionInterface $con = null)
Code to be run after inserting to database
at line 4715
boolean
preUpdate(
ConnectionInterface $con = null)
Code to be run before updating the object in database
at line 4724
postUpdate(
ConnectionInterface $con = null)
Code to be run after updating the object in database
at line 4734
boolean
preDelete(
ConnectionInterface $con = null)
Code to be run before deleting the object in database
at line 4743
postDelete(
ConnectionInterface $con = null)
Code to be run after deleting the object in database
at line 4760
array|string
__call(
string $name,
mixed $params)
Derived method to catches calls to undefined methods.
Provides magic import/export method support (fromXML()/toXML(), fromYAML()/toYAML(), etc.). Allows to define default __call() behavior if you overwrite __call()