Added second class to debug 1:n relation, which is working in general
This commit is contained in:
@@ -16,7 +16,7 @@ class CommonClubsModelFactoryClub extends AbstractCommonClubsModelFactory
|
||||
'iban'=>array(),
|
||||
'bic'=>array(),
|
||||
'charitable'=>array('type'=>'int'),
|
||||
'president'=>array('type'=>'int', 'ref'=>'CommonClubsModelUser')
|
||||
'president'=>array('type'=>'ref', 'ref'=>'CommonClubsModelUser')
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
27
src/admin/common/models/factory/user.php
Normal file
27
src/admin/common/models/factory/user.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
// No direct access.
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
class CommonClubsModelFactoryUser extends AbstractCommonClubsModelFactory
|
||||
{
|
||||
public function getAttributes()
|
||||
{
|
||||
return array(
|
||||
'user'=>array(),
|
||||
'name'=>array()
|
||||
);
|
||||
}
|
||||
|
||||
public function getTableName()
|
||||
{
|
||||
return '#__club_users';
|
||||
}
|
||||
|
||||
public function getClassName()
|
||||
{
|
||||
return 'CommonClubsModelUser';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user