Customer
class Customer extends Customer implements UserInterface
Skeleton subclass for representing a row from the 'customer' table.
You should add additional methods to this class to meet the application requirements. This class will only be generated as long as it does not already exist in the output directory.
Traits
Constants
TABLE_MAP |
TableMap class name |
Methods
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.
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}');
Get the [optionally formatted] temporal [created_at] column value.
Get the [optionally formatted] temporal [updated_at] column value.
Get the [optionally formatted] temporal [versioncreatedat] column value.
create hash for plain password and set it in Customer object
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.
Sets the value of [versioncreatedat] column to a normalized version of the date/time value specified.
Indicates whether the columns in this object are only set to default values.
Hydrates (populates) the object variables with values from the database resultset.
Reloads this object from datastore based on primary key and (optionally) resets all associated objects.
Removes this object from datastore and sets delete attribute.
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.
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.
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.
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.
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.
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.
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.
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.
Resets all references to other model objects or collections of model objects.
Mark the current object so that the update date doesn't get updated during 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 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.
No description
No description
Return the customer lang, or the default one if none is defined.
Get lang identifier
Set lang identifier
No description
Return the user unique name
Check a string against a the user password
Removes sensitive data from the user.
return the user token (used by remember me authnetication system)
Set a token in the user data (used by remember me authnetication system)
return the user serial (used by remember me authnetication system)
No description
Set a serial number int the user data (used by remember me authnetication system)
Details
in
Customer at line 309
applyDefaultValues()
Applies default values to this object.
This method should be called from the object's constructor (or equivalent initialization method).
in
Customer at line 320
__construct()
Initializes internal state of Thelia\Model\Base\Customer object.
in
Customer at line 330
boolean
isModified()
Returns whether the object has been modified.
in
Customer at line 341
boolean
isColumnModified(
string $col)
Has specified column been modified?
in
Customer at line 350
array
getModifiedColumns()
Get the columns that have been modified in this object.
in
Customer 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.
in
Customer at line 373
setNew(
boolean $b)
Setter for the isNew attribute. This method will be called by Propel-generated children and objects.
in
Customer at line 382
boolean
isDeleted()
Whether this object has been deleted.
in
Customer at line 392
void
setDeleted(
boolean $b)
Specify whether this object has been deleted.
in
Customer at line 402
void
resetModified(
string $col = null)
Sets the modified state for the object to be false.
in
Customer 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
.
in
Customer 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.
in
Customer at line 460
array
getVirtualColumns()
Get the associative array of the virtual columns in this object
in
Customer at line 471
boolean
hasVirtualColumn(
string $name)
Checks the existence of a virtual column in this object
in
Customer at line 484
mixed
getVirtualColumn(
string $name)
Get the value of a virtual column in this object
in
Customer at line 501
Customer
setVirtualColumn(
string $name,
mixed $value)
Set the value of a virtual column in this object
in
Customer 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}');
in
Customer 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}');
in
ModelEventDispatcherTrait at line 57
__sleep()
in
Customer at line 581
int
getId()
Get the [id] column value.
in
Customer at line 592
int
getTitleId()
Get the [title_id] column value.
in
Customer at line 603
int
getLangId()
Get the [lang_id] column value.
in
Customer at line 614
string
getRef()
Get the [ref] column value.
in
Customer at line 625
string
getFirstname()
Get the [firstname] column value.
in
Customer at line 636
string
getLastname()
Get the [lastname] column value.
in
Customer at line 647
string
getEmail()
Get the [email] column value.
in
Customer at line 658
string
getPassword()
Get the [password] column value.
in
Customer at line 669
string
getAlgo()
Get the [algo] column value.
in
Customer at line 680
int
getReseller()
Get the [reseller] column value.
in
Customer at line 691
string
getSponsor()
Get the [sponsor] column value.
in
Customer at line 702
string
getDiscount()
Get the [discount] column value.
in
Customer at line 713
string
getRememberMeToken()
Get the [remembermetoken] column value.
in
Customer at line 724
string
getRememberMeSerial()
Get the [remembermeserial] column value.
in
Customer at line 735
int
getEnable()
Get the [enable] column value.
in
Customer at line 746
string
getConfirmationToken()
Get the [confirmation_token] column value.
in
Customer at line 763
mixed
getCreatedAt(
string $format = NULL)
Get the [optionally formatted] temporal [created_at] column value.
in
Customer at line 783
mixed
getUpdatedAt(
string $format = NULL)
Get the [optionally formatted] temporal [updated_at] column value.
in
Customer at line 797
int
getVersion()
Get the [version] column value.
in
Customer at line 814
mixed
getVersionCreatedAt(
string $format = NULL)
Get the [optionally formatted] temporal [versioncreatedat] column value.
in
Customer at line 828
string
getVersionCreatedBy()
Get the [versioncreatedby] column value.
at line 232
Customer
setRef(
string $v)
Set the value of [ref] column.
at line 274
Customer
setEmail($email, $force = false)
Set the value of [email] column.
at line 248
Customer
setPassword(
string $password)
create hash for plain password and set it in Customer object
in
Customer at line 1100
Customer
setRememberMeToken(
string $v)
Set the value of [remembermetoken] column.
in
Customer at line 1121
Customer
setRememberMeSerial(
string $v)
Set the value of [remembermeserial] column.
in
Customer at line 1163
Customer
setConfirmationToken(
string $v)
Set the value of [confirmation_token] column.
in
Customer at line 1185
Customer
setCreatedAt(
mixed $v)
Sets the value of [created_at] column to a normalized version of the date/time value specified.
in
Customer at line 1206
Customer
setUpdatedAt(
mixed $v)
Sets the value of [updated_at] column to a normalized version of the date/time value specified.
in
Customer at line 1248
Customer
setVersionCreatedAt(
mixed $v)
Sets the value of [versioncreatedat] column to a normalized version of the date/time value specified.
in
Customer at line 1268
Customer
setVersionCreatedBy(
string $v)
Set the value of [versioncreatedby] column.
in
Customer 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.
in
Customer 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.
in
Customer 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.
in
Customer 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.
in
Customer at line 1503
void
delete(
ConnectionInterface $con = null)
Removes this object from datastore and sets delete attribute.
in
Customer 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.
in
Customer 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.
in
Customer at line 1989
mixed
getByPosition(
int $pos)
Retrieves a field from the object by Position as specified in the xml schema.
Zero-based.
in
Customer 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.
in
Customer 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.
in
Customer 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.
in
Customer 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.
in
Customer at line 2282
Criteria
buildCriteria()
Build a Criteria object containing the values of all modified columns in this object.
in
Customer 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.
in
Customer at line 2331
int
getPrimaryKey()
Returns the primary key for this object (row).
in
Customer at line 2342
void
setPrimaryKey(
int $key)
Generic method to set the primary key (id column).
in
Customer at line 2351
boolean
isPrimaryKeyNull()
Returns true if the primary key for this object is null.
in
Customer 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.
in
Customer 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.
in
Customer at line 2463
Customer
setCustomerTitle(
CustomerTitle $v = null)
Declares an association between this object and a ChildCustomerTitle object.
in
Customer at line 2491
CustomerTitle
getCustomerTitle(
ConnectionInterface $con = null)
Get the associated ChildCustomerTitle object
in
Customer at line 2514
Customer
setLangModel(
Lang $v = null)
Declares an association between this object and a ChildLang object.
in
Customer at line 2542
Lang
getLangModel(
ConnectionInterface $con = null)
Get the associated ChildLang object
in
Customer 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.
in
Customer 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.
in
Customer at line 2603
resetPartialAddresses($v = true)
Reset is the collAddresses collection loaded partially.
in
Customer 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.
in
Customer 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.
in
Customer 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.
in
Customer at line 2730
int
countAddresses(
Criteria $criteria = null,
boolean $distinct = false,
ConnectionInterface $con = null)
Returns the number of related Address objects.
in
Customer at line 2762
Customer
addAddress(
Address $l)
Method called to associate a ChildAddress object to this object through the ChildAddress foreign key attribute.
in
Customer 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.
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.
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.
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.
in
Customer at line 2896
resetPartialOrders($v = true)
Reset is the collOrders collection loaded partially.
in
Customer 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.
in
Customer 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.
in
Customer 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.
in
Customer at line 3023
int
countOrders(
Criteria $criteria = null,
boolean $distinct = false,
ConnectionInterface $con = null)
Returns the number of related Order objects.
in
Customer at line 3055
Customer
addOrder(
Order $l)
Method called to associate a ChildOrder object to this object through the ChildOrder foreign key attribute.
in
Customer 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.
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.
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.
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.
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.
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.
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.
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.
in
Customer at line 3289
resetPartialCarts($v = true)
Reset is the collCarts collection loaded partially.
in
Customer 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.
in
Customer 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.
in
Customer 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.
in
Customer at line 3416
int
countCarts(
Criteria $criteria = null,
boolean $distinct = false,
ConnectionInterface $con = null)
Returns the number of related Cart objects.
in
Customer at line 3448
Customer
addCart(
Cart $l)
Method called to associate a ChildCart object to this object through the ChildCart foreign key attribute.
in
Customer 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.
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.
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.
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.
in
Customer at line 3582
resetPartialCouponCustomerCounts($v = true)
Reset is the collCouponCustomerCounts collection loaded partially.
in
Customer 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.
in
Customer 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.
in
Customer 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.
in
Customer at line 3712
int
countCouponCustomerCounts(
Criteria $criteria = null,
boolean $distinct = false,
ConnectionInterface $con = null)
Returns the number of related CouponCustomerCount objects.
in
Customer at line 3744
Customer
addCouponCustomerCount(
CouponCustomerCount $l)
Method called to associate a ChildCouponCustomerCount object to this object through the ChildCouponCustomerCount foreign key attribute.
in
Customer at line 3771
Customer
removeCouponCustomerCount(
CouponCustomerCount $couponCustomerCount)
in
Customer 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.
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.
in
Customer at line 3828
resetPartialCustomerVersions($v = true)
Reset is the collCustomerVersions collection loaded partially.
in
Customer 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.
in
Customer 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.
in
Customer 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.
in
Customer at line 3958
int
countCustomerVersions(
Criteria $criteria = null,
boolean $distinct = false,
ConnectionInterface $con = null)
Returns the number of related CustomerVersion objects.
in
Customer at line 3990
Customer
addCustomerVersion(
CustomerVersion $l)
Method called to associate a ChildCustomerVersion object to this object through the ChildCustomerVersion foreign key attribute.
in
Customer at line 4017
Customer
removeCustomerVersion(
CustomerVersion $customerVersion)
in
Customer 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.
in
Customer 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.
in
Customer 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.
in
Customer 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.
in
Customer 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.
in
Customer at line 4162
Customer
addCoupon(
Coupon $coupon)
Associate a ChildCoupon object to this object through the couponcustomercount cross reference table.
in
Customer at line 4199
Customer
removeCoupon(
Coupon $coupon)
Remove a ChildCoupon object to this object through the couponcustomercount cross reference table.
in
Customer at line 4218
clear()
Clears the current object and sets all attributes to their default values
in
Customer 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.
in
Customer at line 4308
string
__toString()
Return the string representation of this object
in
Customer at line 4320
Customer
keepUpdateDateUnchanged()
Mark the current object so that the update date doesn't get updated during next save
in
Customer at line 4334
Customer
enforceVersioning()
Enforce a new Version of this object upon next save.
in
Customer at line 4346
boolean
isVersioningNecessary($con = null)
Checks whether the current state must be recorded as a version
in
Customer at line 4381
CustomerVersion
addVersion(
ConnectionInterface $con = null)
Creates a version of the current object and saves it.
in
Customer 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
in
Customer 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
in
Customer at line 4502
integer
getLastVersionNumber(
ConnectionInterface $con = null)
Gets the latest persisted version number for the current object
in
Customer at line 4522
Boolean
isLastVersion(
ConnectionInterface $con = null)
Checks whether the current object is the latest one
in
Customer at line 4535
CustomerVersion
getOneVersion(
integer $versionNumber,
ConnectionInterface $con = null)
Retrieves a version object for this entity and a version number
in
Customer at line 4550
ObjectCollection
getAllVersions(
ConnectionInterface $con = null)
Gets all the versions of this object, in incremental order
in
Customer 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')
);
in
Customer 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')
);
in
Customer at line 4664
PropelCollection|array
getLastVersions($number = 10, $criteria = null, $con = null)
retrieve the last $number versions.
in
Customer at line 4677
boolean
preSave(
ConnectionInterface $con = null)
Code to be run before persisting the object
in
Customer at line 4686
postSave(
ConnectionInterface $con = null)
Code to be run after persisting the object
at line 366
boolean
preInsert(
ConnectionInterface $con = null)
Code to be run before inserting to database
at line 383
postInsert(
ConnectionInterface $con = null)
Code to be run after inserting to database
at line 391
boolean
preUpdate(
ConnectionInterface $con = null)
Code to be run before updating the object in database
at line 401
postUpdate(
ConnectionInterface $con = null)
Code to be run after updating the object in database
at line 409
boolean
preDelete(
ConnectionInterface $con = null)
Code to be run before deleting the object in database
at line 419
postDelete(
ConnectionInterface $con = null)
Code to be run after deleting the object in database
in
Customer 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()
in
ModelEventDispatcherTrait at line 33
$this
setDispatcher(
EventDispatcherInterface $dispatcher)
in
ModelEventDispatcherTrait at line 40
getDispatcher()
in
ModelEventDispatcherTrait at line 45
clearDispatcher()
at line 58
createOrUpdate(
int $titleId,
string $firstname,
string $lastname,
string $address1,
string $address2,
string $address3,
string $phone,
string $cellphone,
string $zipcode,
string $city,
int $countryId,
string $email = null,
string $plainPassword = null,
string $lang = null,
int $reseller,
null $sponsor = null,
int $discount,
null $company = null,
null $ref = null,
bool $forceEmailUpdate = false,
int $stateId = null)
at line 160
Lang
getCustomerLang()
Return the customer lang, or the default one if none is defined.
at line 184
integer
getLang()
Get lang identifier
at line 201
$this
setLang(
integer $langId)
Set lang identifier
at line 224
Address
getDefaultAddress()
at line 292
String
getUsername()
Return the user unique name
at line 300
bool
checkPassword(
string $password)
Check a string against a the user password
at line 308
void
eraseCredentials()
Removes sensitive data from the user.
This is important if, at any given point, sensitive information like the plain-text password is stored on this object.
at line 317
Role[]
getRoles()
Returns the roles granted to the user.
public function getRoles()
{
return array('USER');
}
at line 325
String
getToken()
return the user token (used by remember me authnetication system)
at line 333
setToken(
string $token)
Set a token in the user data (used by remember me authnetication system)
at line 341
String
getSerial()
return the user serial (used by remember me authnetication system)
at line 346
hasOrder()
at line 358
setSerial(
string $serial)
Set a serial number int the user data (used by remember me authnetication system)