projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed CRM-20330: provided a way to generate a table with a composite primary key...
[civicrm-core.git]
/
CRM
/
Core
/
DAO
/
StateProvince.php
diff --git
a/CRM/Core/DAO/StateProvince.php
b/CRM/Core/DAO/StateProvince.php
index b3f257f9fc2c03a32dc123115749713f6a67941b..58b9596130a459d47c84827a907f7530b64d7c67 100644
(file)
--- a/
CRM/Core/DAO/StateProvince.php
+++ b/
CRM/Core/DAO/StateProvince.php
@@
-30,7
+30,7
@@
*
* Generated from xml/schema/CRM/Core/StateProvince.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
*
* Generated from xml/schema/CRM/Core/StateProvince.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:
70c072816098c4cbd13b7c13218c35e8
)
+ * (GenCodeChecksum:
baa81154c9779b2e56e78504e7c9b74c
)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
@@
-109,6
+109,9
@@
class CRM_Core_DAO_StateProvince extends CRM_Core_DAO {
'title' => ts('State ID') ,
'description' => 'State/Province ID',
'required' => true,
'title' => ts('State ID') ,
'description' => 'State/Province ID',
'required' => true,
+ 'table_name' => 'civicrm_state_province',
+ 'entity' => 'StateProvince',
+ 'bao' => 'CRM_Core_DAO_StateProvince',
) ,
'name' => array(
'name' => 'name',
) ,
'name' => array(
'name' => 'name',
@@
-122,6
+125,9
@@
class CRM_Core_DAO_StateProvince extends CRM_Core_DAO {
'headerPattern' => '/state|prov(ince)?/i',
'dataPattern' => '/[A-Z]{2}/',
'export' => true,
'headerPattern' => '/state|prov(ince)?/i',
'dataPattern' => '/[A-Z]{2}/',
'export' => true,
+ 'table_name' => 'civicrm_state_province',
+ 'entity' => 'StateProvince',
+ 'bao' => 'CRM_Core_DAO_StateProvince',
) ,
'abbreviation' => array(
'name' => 'abbreviation',
) ,
'abbreviation' => array(
'name' => 'abbreviation',
@@
-130,6
+136,9
@@
class CRM_Core_DAO_StateProvince extends CRM_Core_DAO {
'description' => '2-4 Character Abbreviation of State/Province',
'maxlength' => 4,
'size' => CRM_Utils_Type::FOUR,
'description' => '2-4 Character Abbreviation of State/Province',
'maxlength' => 4,
'size' => CRM_Utils_Type::FOUR,
+ 'table_name' => 'civicrm_state_province',
+ 'entity' => 'StateProvince',
+ 'bao' => 'CRM_Core_DAO_StateProvince',
) ,
'country_id' => array(
'name' => 'country_id',
) ,
'country_id' => array(
'name' => 'country_id',
@@
-137,6
+146,9
@@
class CRM_Core_DAO_StateProvince extends CRM_Core_DAO {
'title' => ts('Country') ,
'description' => 'ID of Country that State/Province belong',
'required' => true,
'title' => ts('Country') ,
'description' => 'ID of Country that State/Province belong',
'required' => true,
+ 'table_name' => 'civicrm_state_province',
+ 'entity' => 'StateProvince',
+ 'bao' => 'CRM_Core_DAO_StateProvince',
'FKClassName' => 'CRM_Core_DAO_Country',
) ,
);
'FKClassName' => 'CRM_Core_DAO_Country',
) ,
);