"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tine20/ExampleApplication/Model/OneToOne.php" between
tine20-2020.08.3.tar.gz and tine20-2020.08.4.tar.gz

About: Tine 2.0 is a platform independent business software system which combines groupware and customer relationship management (CRM). Commercial support is available. Source code.

OneToOne.php  (tine20-2020.08.3):OneToOne.php  (tine20-2020.08.4)
skipping to change at line 24 skipping to change at line 24
/** /**
* class to hold OneToOne example record data * class to hold OneToOne example record data
* *
* @package ExampleApplication * @package ExampleApplication
* @subpackage Model * @subpackage Model
* @property Tinebase_DateTime datetime * @property Tinebase_DateTime datetime
*/ */
class ExampleApplication_Model_OneToOne extends Tinebase_Record_NewAbstract class ExampleApplication_Model_OneToOne extends Tinebase_Record_NewAbstract
{ {
const FLD_ADB_RECORD = 'adb_record';
const FLD_EXAMPLE_RECORD = 'example_record'; const FLD_EXAMPLE_RECORD = 'example_record';
const FLD_NAME = 'name'; const FLD_NAME = 'name';
const MODEL_NAME_PART = 'OneToOne'; const MODEL_NAME_PART = 'OneToOne';
const TABLE_NAME = 'example_onetoone'; const TABLE_NAME = 'example_onetoone';
/** /**
* holds the configuration object (must be declared in the concrete class) * holds the configuration object (must be declared in the concrete class)
* *
* @var Tinebase_ModelConfiguration * @var Tinebase_ModelConfiguration
skipping to change at line 59 skipping to change at line 60
self::TABLE => [ self::TABLE => [
self::NAME => self::TABLE_NAME, self::NAME => self::TABLE_NAME,
self::UNIQUE_CONSTRAINTS => [ self::UNIQUE_CONSTRAINTS => [
self::FLD_EXAMPLE_RECORD => [ self::FLD_EXAMPLE_RECORD => [
self::COLUMNS => [self::FLD_EXAMPLE_RECORD ] self::COLUMNS => [self::FLD_EXAMPLE_RECORD ]
] ]
] ]
], ],
self::ASSOCIATIONS => [ self::ASSOCIATIONS => [
// this morphs into a one_to_one since example_record is unique too
ClassMetadataInfo::MANY_TO_ONE => [ ClassMetadataInfo::MANY_TO_ONE => [
// this morphs into a one_to_one since example_record is unique too
self::FLD_EXAMPLE_RECORD => [ self::FLD_EXAMPLE_RECORD => [
self::TARGET_ENTITY => ExampleApplication_Model_ ExampleRecord::class, self::TARGET_ENTITY => ExampleApplication_Model_ ExampleRecord::class,
self::FIELD_NAME => self::FLD_EXAMPLE_RECORD, self::FIELD_NAME => self::FLD_EXAMPLE_RECORD,
self::JOIN_COLUMNS => [[ self::JOIN_COLUMNS => [[
self::NAME => self::FLD_EXAMPLE_REC ORD, self::NAME => self::FLD_EXAMPLE_REC ORD,
self::REFERENCED_COLUMN_NAME => 'id', self::REFERENCED_COLUMN_NAME => 'id',
self::ON_DELETE => 'CASCADE', self::ON_DELETE => 'CASCADE',
]], ]],
],
// this morphs into a one_to_one since adb_record is unique too
self::FLD_ADB_RECORD => [
self::TARGET_ENTITY => Addressbook_Model_Contact
::class,
self::FIELD_NAME => self::FLD_ADB_RECORD,
self::JOIN_COLUMNS => [[
self::NAME => self::FLD_ADB_RECORD,
self::REFERENCED_COLUMN_NAME => 'id',
]],
] ]
], ],
], ],
self::FIELDS => [ self::FIELDS => [
self::FLD_NAME => [ self::FLD_NAME => [
self::TYPE => self::TYPE_STRING, self::TYPE => self::TYPE_STRING,
self::LENGTH => 255, self::LENGTH => 255,
self::VALIDATORS => [ self::VALIDATORS => [
Zend_Filter_Input::ALLOW_EMPTY => false, Zend_Filter_Input::ALLOW_EMPTY => false,
skipping to change at line 97 skipping to change at line 108
self::VALIDATORS => [ self::VALIDATORS => [
Zend_Filter_Input::ALLOW_EMPTY => false, Zend_Filter_Input::ALLOW_EMPTY => false,
Zend_Filter_Input::PRESENCE => Zend_Filter_Input::PRESENCE_R EQUIRED Zend_Filter_Input::PRESENCE => Zend_Filter_Input::PRESENCE_R EQUIRED
], ],
self::CONFIG => [ self::CONFIG => [
self::APP_NAME => ExampleApplication_Config ::APP_NAME, self::APP_NAME => ExampleApplication_Config ::APP_NAME,
self::MODEL_NAME => ExampleApplication_Model_ ExampleRecord::MODEL_NAME_PART, self::MODEL_NAME => ExampleApplication_Model_ ExampleRecord::MODEL_NAME_PART,
self::IS_DEPENDENT => true, // TODO do we need this? self::IS_DEPENDENT => true, // TODO do we need this?
] ]
], ],
self::FLD_ADB_RECORD => [
self::TYPE => self::TYPE_RECORD,
self::LENGTH => 40,
self::NULLABLE => true,
self::VALIDATORS => [
Zend_Filter_Input::ALLOW_EMPTY => true,
],
self::CONFIG => [
self::APP_NAME => Addressbook_Config::APP_N
AME,
self::MODEL_NAME => 'Contact', //Addressbook_
Model_Contact::MODEL_NAME_PART,
]
],
] ]
]; ];
} }
 End of changes. 5 change blocks. 
1 lines changed or deleted 27 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)