Overview

Namespaces

  • PHP
  • Thelia
    • Action
    • Controller
    • Core
      • Bundle
      • Event
      • EventListener
      • Template
    • Exception
    • Log
      • Destination
    • Model
      • map
      • om
    • Routing
      • Matcher
    • Tools

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('create_column' => 'created_at', 'update_column' => 'updated_at', 'disable_updated_at' => 'false', ),
92:         );
93:     } // getBehaviors()
94: 
95: } // CustomerTableMap
96: 
thelia API documentation generated by ApiGen 2.8.0