public function setUp()
 {
     parent::setUp();
     $this->hasOne('StagingCatalogue as Parent', array('local' => 'parent_ref', 'foreign' => 'id'));
     $this->hasOne('Imports as Import', array('local' => 'import_ref', 'foreign' => 'id'));
     $this->hasMany('StagingCatalogue', array('local' => 'id', 'foreign' => 'parent_ref'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('Specimens', array('refClass' => 'SpecimensMethods', 'local' => 'collecting_method_ref', 'foreign' => 'specimen_ref'));
     $this->hasMany('SpecimensMethods', array('local' => 'id', 'foreign' => 'collecting_method_ref'));
     $this->hasMany('StagingMethods', array('local' => 'id', 'foreign' => 'collecting_method_ref'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('PeopleRelationships', array('local' => 'id', 'foreign' => 'person_1_ref'));
     $this->hasMany('Specimens', array('local' => 'id', 'foreign' => 'institution_ref'));
     $this->hasMany('SpecimensRelationships', array('local' => 'id', 'foreign' => 'institution_ref'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Loans as Loan', array('local' => 'loan_ref', 'foreign' => 'id'));
     $this->hasOne('Igs as Ig', array('local' => 'ig_ref', 'foreign' => 'id'));
     $this->hasOne('Specimens as DarwinParts', array('local' => 'specimen_ref', 'foreign' => 'id'));
 }
Пример #5
0
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('TagGroups', array('local' => 'id', 'foreign' => 'gtu_ref'));
     $this->hasMany('Tags', array('local' => 'id', 'foreign' => 'gtu_ref'));
     $this->hasMany('Specimens', array('local' => 'id', 'foreign' => 'gtu_ref'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Chronostratigraphy as Parent', array('local' => 'parent_ref', 'foreign' => 'id'));
     $this->hasOne('CatalogueLevels as Level', array('local' => 'level_ref', 'foreign' => 'id'));
     $this->hasMany('Chronostratigraphy', array('local' => 'id', 'foreign' => 'parent_ref'));
     $this->hasMany('Specimens', array('local' => 'id', 'foreign' => 'chrono_ref'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Lithology as Parent', array('local' => 'parent_ref', 'foreign' => 'id'));
     $this->hasOne('CatalogueLevels as Level', array('local' => 'level_ref', 'foreign' => 'id'));
     $this->hasMany('Lithology', array('local' => 'id', 'foreign' => 'parent_ref'));
     $this->hasMany('Specimens', array('local' => 'id', 'foreign' => 'lithology_ref'));
 }
Пример #8
0
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('LoanActors as CataloguePeople', array('local' => 'id', 'foreign' => 'record_id'));
     $this->hasMany('LoanItems', array('local' => 'id', 'foreign' => 'loan_ref'));
     $this->hasMany('LoanRights', array('local' => 'id', 'foreign' => 'loan_ref'));
     $this->hasMany('LoanStatus', array('local' => 'id', 'foreign' => 'loan_ref'));
 }
Пример #9
0
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Taxonomy as Parent', array('local' => 'parent_ref', 'foreign' => 'id'));
     $this->hasOne('CatalogueLevels as Level', array('local' => 'level_ref', 'foreign' => 'id'));
     $this->hasMany('Taxonomy', array('local' => 'id', 'foreign' => 'parent_ref'));
     $this->hasMany('Specimens', array('local' => 'id', 'foreign' => 'taxon_ref'));
     $this->hasMany('SpecimensRelationships', array('local' => 'id', 'foreign' => 'taxon_ref'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Specimens as Specimen', array('local' => 'specimen_ref', 'foreign' => 'id'));
     $this->hasOne('Specimens as SpecimenRelated', array('local' => 'specimen_related_ref', 'foreign' => 'id'));
     $this->hasOne('Taxonomy', array('local' => 'taxon_ref', 'foreign' => 'id'));
     $this->hasOne('Mineralogy', array('local' => 'mineral_ref', 'foreign' => 'id'));
     $this->hasOne('Institutions', array('local' => 'institution_ref', 'foreign' => 'id'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('PossibleUpperLevels', array('local' => 'id', 'foreign' => 'level_upper_ref'));
     $this->hasMany('Taxonomy', array('local' => 'id', 'foreign' => 'level_ref'));
     $this->hasMany('Chronostratigraphy', array('local' => 'id', 'foreign' => 'level_ref'));
     $this->hasMany('Lithostratigraphy', array('local' => 'id', 'foreign' => 'level_ref'));
     $this->hasMany('Mineralogy', array('local' => 'id', 'foreign' => 'level_ref'));
     $this->hasMany('Lithology', array('local' => 'id', 'foreign' => 'level_ref'));
 }
Пример #12
0
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Collections', array('local' => 'collection_ref', 'foreign' => 'id'));
     $this->hasOne('Users', array('local' => 'user_ref', 'foreign' => 'id'));
     $this->hasMany('Staging', array('local' => 'id', 'foreign' => 'import_ref'));
     $this->hasMany('StagingCatalogue', array('local' => 'id', 'foreign' => 'import_ref'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('People as Institution', array('local' => 'institution_ref', 'foreign' => 'id'));
     $this->hasOne('Users as Manager', array('local' => 'main_manager_ref', 'foreign' => 'id'));
     $this->hasOne('Users as Staff', array('local' => 'staff_ref', 'foreign' => 'id'));
     $this->hasOne('Collections as Parent', array('local' => 'parent_ref', 'foreign' => 'id'));
     $this->hasMany('Collections', array('local' => 'id', 'foreign' => 'parent_ref'));
     $this->hasMany('CollectionsRights', array('local' => 'id', 'foreign' => 'collection_ref'));
     $this->hasMany('Specimens', array('local' => 'id', 'foreign' => 'collection_ref'));
     $this->hasMany('Imports', array('local' => 'id', 'foreign' => 'collection_ref'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Users as User', array('local' => 'user_ref', 'foreign' => 'id'));
 }
Пример #15
0
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('Specimens', array('local' => 'id', 'foreign' => 'ig_ref'));
     $this->hasMany('LoanItems', array('local' => 'id', 'foreign' => 'ig_ref'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Staging', array('local' => 'staging_ref', 'foreign' => 'id'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Institutions as Parent', array('local' => 'person_1_ref', 'foreign' => 'id'));
     $this->hasOne('People as Child', array('local' => 'person_2_ref', 'foreign' => 'id'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Bibliography', array('local' => 'bibliography_ref', 'foreign' => 'id'));
 }
Пример #19
0
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('People', array('local' => 'people_id', 'foreign' => 'id'));
     $this->hasMany('UsersComm', array('local' => 'id', 'foreign' => 'person_user_ref'));
     $this->hasMany('UsersAddresses', array('local' => 'id', 'foreign' => 'person_user_ref'));
     $this->hasMany('UsersLoginInfos', array('local' => 'id', 'foreign' => 'user_ref'));
     $this->hasMany('Collections', array('local' => 'id', 'foreign' => 'main_manager_ref'));
     $this->hasMany('CollectionsRights', array('local' => 'id', 'foreign' => 'user_ref'));
     $this->hasMany('UsersTracking', array('local' => 'id', 'foreign' => 'user_ref'));
     $this->hasMany('InformativeWorkflow', array('local' => 'id', 'foreign' => 'user_ref'));
     $this->hasMany('MySavedSearches', array('local' => 'id', 'foreign' => 'user_ref'));
     $this->hasMany('MyWidgets', array('local' => 'id', 'foreign' => 'user_ref'));
     $this->hasMany('Preferences', array('local' => 'id', 'foreign' => 'user_ref'));
     $this->hasMany('Imports', array('local' => 'id', 'foreign' => 'user_ref'));
     $this->hasMany('LoanRights', array('local' => 'id', 'foreign' => 'user_ref'));
     $this->hasMany('LoanStatus', array('local' => 'id', 'foreign' => 'user_ref'));
     $this->hasMany('Reports', array('local' => 'id', 'foreign' => 'user_ref'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('People', array('local' => 'insurer_ref', 'foreign' => 'id'));
     $this->hasOne('People as Contact', array('local' => 'contact_ref', 'foreign' => 'id'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Specimens', array('local' => 'record_id', 'foreign' => 'id'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('Specimens', array('refClass' => 'SpecimensTools', 'local' => 'collecting_tool_ref', 'foreign' => 'specimen_ref'));
     $this->hasMany('SpecimensTools', array('local' => 'id', 'foreign' => 'collecting_tool_ref'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Specimens', array('local' => 'specimen_ref', 'foreign' => 'id'));
     $this->hasOne('CollectingMethods', array('local' => 'collecting_method_ref', 'foreign' => 'id'));
 }
Пример #24
0
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Imports as Import', array('local' => 'import_ref', 'foreign' => 'id'));
     $this->hasOne('Staging as Parent', array('local' => 'parent_ref', 'foreign' => 'id'));
     $this->hasMany('Staging', array('local' => 'id', 'foreign' => 'parent_ref'));
     $this->hasMany('StagingInfo', array('local' => 'id', 'foreign' => 'staging_ref'));
     $this->hasMany('StagingTagGroups', array('local' => 'id', 'foreign' => 'staging_ref'));
     $this->hasMany('StagingMethods', array('local' => 'id', 'foreign' => 'staging_ref'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('CatalogueLevels as UpperLevel', array('local' => 'level_upper_ref', 'foreign' => 'id'));
     $this->hasOne('CatalogueLevels as Level', array('local' => 'level_ref', 'foreign' => 'id'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('CatalogueBibliography', array('local' => 'id', 'foreign' => 'bibliography_ref'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('People', array('local' => 'people_ref', 'foreign' => 'id'));
 }
Пример #28
0
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('CataloguePeople', array('local' => 'id', 'foreign' => 'people_ref'));
     $this->hasMany('Users', array('local' => 'id', 'foreign' => 'people_id'));
     $this->hasMany('PeopleLanguages', array('local' => 'id', 'foreign' => 'people_ref'));
     $this->hasMany('PeopleRelationships', array('local' => 'id', 'foreign' => 'person_2_ref'));
     $this->hasMany('PeopleComm', array('local' => 'id', 'foreign' => 'person_user_ref'));
     $this->hasMany('PeopleAddresses', array('local' => 'id', 'foreign' => 'person_user_ref'));
     $this->hasMany('Collections', array('local' => 'id', 'foreign' => 'institution_ref'));
     $this->hasMany('CollectionMaintenance', array('local' => 'id', 'foreign' => 'people_ref'));
     $this->hasMany('Insurances', array('local' => 'id', 'foreign' => 'insurer_ref'));
     $this->hasMany('StagingPeople', array('local' => 'id', 'foreign' => 'people_ref'));
 }
Пример #29
0
 public function setUp()
 {
     parent::setUp();
 }
Пример #30
0
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Gtu', array('local' => 'gtu_ref', 'foreign' => 'id'));
     $this->hasMany('Tags', array('local' => 'id', 'foreign' => 'group_ref'));
 }