Class CustomerWriter
This class is used for writing customer data to the database
category |
System |
---|---|
package |
Customer |
implements |
CustomerWriterInterface |
__construct(\CI_DB_query_builder $dbQueryBuilder)
\CI_DB_query_builder
Query builder.
_insert(\CustomerInterface $customer)
Throws |
|
---|
_update(\CustomerInterface $customer)
\CustomerInterface
Customer.
TODO Use wrapper function getDefaultAddressId() instead of getDefaultAddress()->getId()
write(\CustomerInterface $customer)
If customer does not exists it will perform an _insert(), otherwise it will perform an _update().
db : \CI_DB_query_builder
var |
---|
\CI_DB_query_builder