Overview

Namespaces

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

Classes

  • AccessoryTableMap
  • AddressTableMap
  • AdminGroupTableMap
  • AdminLogTableMap
  • AdminTableMap
  • AreaTableMap
  • AttributeAvDescTableMap
  • AttributeAvI18nTableMap
  • AttributeAvTableMap
  • AttributeCategoryTableMap
  • AttributeCombinationTableMap
  • AttributeDescTableMap
  • AttributeI18nTableMap
  • AttributeTableMap
  • CategoryDescTableMap
  • CategoryI18nTableMap
  • CategoryTableMap
  • CategoryVersionTableMap
  • CombinationTableMap
  • ConfigDescTableMap
  • ConfigI18nTableMap
  • ConfigTableMap
  • ContentAssocTableMap
  • ContentDescTableMap
  • ContentFolderTableMap
  • ContentI18nTableMap
  • ContentTableMap
  • ContentVersionTableMap
  • CountryDescTableMap
  • CountryI18nTableMap
  • CountryTableMap
  • CouponOrderTableMap
  • CouponRuleTableMap
  • CouponTableMap
  • CurrencyTableMap
  • CustomerTableMap
  • CustomerTitleDescTableMap
  • CustomerTitleI18nTableMap
  • CustomerTitleTableMap
  • DelivzoneTableMap
  • DocumentDescTableMap
  • DocumentI18nTableMap
  • DocumentTableMap
  • FeatureAvDescTableMap
  • FeatureAvI18nTableMap
  • FeatureAvTableMap
  • FeatureCategoryTableMap
  • FeatureDescTableMap
  • FeatureI18nTableMap
  • FeatureProdTableMap
  • FeatureTableMap
  • FolderDescTableMap
  • FolderI18nTableMap
  • FolderTableMap
  • FolderVersionTableMap
  • GroupDescTableMap
  • GroupI18nTableMap
  • GroupModuleTableMap
  • GroupResourceTableMap
  • GroupTableMap
  • ImageDescTableMap
  • ImageI18nTableMap
  • ImageTableMap
  • LangTableMap
  • MessageDescTableMap
  • MessageI18nTableMap
  • MessageTableMap
  • MessageVersionTableMap
  • ModuleDescTableMap
  • ModuleI18nTableMap
  • ModuleTableMap
  • OrderAddressTableMap
  • OrderFeatureTableMap
  • OrderProductTableMap
  • OrderStatusDescTableMap
  • OrderStatusI18nTableMap
  • OrderStatusTableMap
  • OrderTableMap
  • ProductCategoryTableMap
  • ProductDescTableMap
  • ProductI18nTableMap
  • ProductTableMap
  • ProductVersionTableMap
  • ResourceDescTableMap
  • ResourceI18nTableMap
  • ResourceTableMap
  • RewritingTableMap
  • StockTableMap
  • TaxDescTableMap
  • TaxI18nTableMap
  • TaxRuleCountryTableMap
  • TaxRuleDescTableMap
  • TaxRuleI18nTableMap
  • TaxRuleTableMap
  • TaxTableMap
  • Overview
  • Namespace
  • Class
  • Tree
  1: <?php
  2: 
  3: namespace Thelia\Model\map;
  4: 
  5: use \RelationMap;
  6: use \TableMap;
  7: 
  8: 
  9: /**
 10:  * This class defines the structure of the 'customer' table.
 11:  *
 12:  *
 13:  *
 14:  * This map class is used by Propel to do runtime db structure discovery.
 15:  * For example, the createSelectSql() method checks the type of a given column used in an
 16:  * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
 17:  * (i.e. if it's a text column type).
 18:  *
 19:  * @package    propel.generator.Thelia.Model.map
 20:  */
 21: class CustomerTableMap extends TableMap
 22: {
 23: 
 24:     /**
 25:      * The (dot-path) name of this class
 26:      */
 27:     const CLASS_NAME = 'Thelia.Model.map.CustomerTableMap';
 28: 
 29:     /**
 30:      * Initialize the table attributes, columns and validators
 31:      * Relations are not initialized by this method since they are lazy loaded
 32:      *
 33:      * @return void
 34:      * @throws PropelException
 35:      */
 36:     public function initialize()
 37:     {
 38:         // attributes
 39:         $this->setName('customer');
 40:         $this->setPhpName('Customer');
 41:         $this->setClassname('Thelia\\Model\\Customer');
 42:         $this->setPackage('Thelia.Model');
 43:         $this->setUseIdGenerator(true);
 44:         // columns
 45:         $this->addPrimaryKey('id', 'Id', 'INTEGER', true, null, null);
 46:         $this->addColumn('ref', 'Ref', 'VARCHAR', true, 50, null);
 47:         $this->addForeignKey('customer_title_id', 'CustomerTitleId', 'INTEGER', 'customer_title', 'id', false, null, null);
 48:         $this->addColumn('company', 'Company', 'VARCHAR', false, 255, null);
 49:         $this->addColumn('firstname', 'Firstname', 'VARCHAR', true, 255, null);
 50:         $this->addColumn('lastname', 'Lastname', 'VARCHAR', true, 255, null);
 51:         $this->addColumn('address1', 'Address1', 'VARCHAR', true, 255, null);
 52:         $this->addColumn('address2', 'Address2', 'VARCHAR', false, 255, null);
 53:         $this->addColumn('address3', 'Address3', 'VARCHAR', false, 255, null);
 54:         $this->addColumn('zipcode', 'Zipcode', 'VARCHAR', false, 10, null);
 55:         $this->addColumn('city', 'City', 'VARCHAR', true, 255, null);
 56:         $this->addColumn('country_id', 'CountryId', 'INTEGER', true, null, null);
 57:         $this->addColumn('phone', 'Phone', 'VARCHAR', false, 20, null);
 58:         $this->addColumn('cellphone', 'Cellphone', 'VARCHAR', false, 20, null);
 59:         $this->addColumn('email', 'Email', 'VARCHAR', false, 50, null);
 60:         $this->addColumn('password', 'Password', 'VARCHAR', false, 255, null);
 61:         $this->addColumn('algo', 'Algo', 'VARCHAR', false, 128, null);
 62:         $this->addColumn('salt', 'Salt', 'VARCHAR', false, 128, null);
 63:         $this->addColumn('reseller', 'Reseller', 'TINYINT', false, null, null);
 64:         $this->addColumn('lang', 'Lang', 'VARCHAR', false, 10, null);
 65:         $this->addColumn('sponsor', 'Sponsor', 'VARCHAR', false, 50, null);
 66:         $this->addColumn('discount', 'Discount', 'FLOAT', false, null, null);
 67:         $this->addColumn('created_at', 'CreatedAt', 'TIMESTAMP', false, null, null);
 68:         $this->addColumn('updated_at', 'UpdatedAt', 'TIMESTAMP', false, null, null);
 69:         // validators
 70:     } // initialize()
 71: 
 72:     /**
 73:      * Build the RelationMap objects for this table relationships
 74:      */
 75:     public function buildRelations()
 76:     {
 77:         $this->addRelation('CustomerTitle', 'Thelia\\Model\\CustomerTitle', RelationMap::MANY_TO_ONE, array('customer_title_id' => 'id', ), 'SET NULL', 'RESTRICT');
 78:         $this->addRelation('Address', 'Thelia\\Model\\Address', RelationMap::ONE_TO_MANY, array('id' => 'customer_id', ), 'CASCADE', 'RESTRICT', 'Addresss');
 79:         $this->addRelation('Order', 'Thelia\\Model\\Order', RelationMap::ONE_TO_MANY, array('id' => 'customer_id', ), 'CASCADE', 'RESTRICT', 'Orders');
 80:     } // buildRelations()
 81: 
 82:     /**
 83:      *
 84:      * Gets the list of behaviors registered for this table
 85:      *
 86:      * @return array Associative array (name => parameters) of behaviors
 87:      */
 88:     public function getBehaviors()
 89:     {
 90:         return array(
 91:             'timestampable' =>  array (
 92:   'create_column' => 'created_at',
 93:   'update_column' => 'updated_at',
 94:   'disable_updated_at' => 'false',
 95: ),
 96:         );
 97:     } // getBehaviors()
 98: 
 99: } // CustomerTableMap
100: 
thelia API documentation generated by ApiGen 2.8.0