Made definition of columns based on objects
This commit is contained in:
@@ -8,15 +8,15 @@ class CommonClubsModelFactoryClub extends AbstractCommonClubsModelFactory
|
||||
public function fetchAttributes()
|
||||
{
|
||||
return array(
|
||||
'name'=>array(),
|
||||
'address'=>array(),
|
||||
'city'=>array(),
|
||||
'homepage'=>array(),
|
||||
'mail'=>array(),
|
||||
'iban'=>array(),
|
||||
'bic'=>array(),
|
||||
'charitable'=>array('type'=>'int'),
|
||||
'president'=>array('type'=>'ref', 'ref'=>'CommonClubsModelUser')
|
||||
new CommonClubsModelColumnString('name'),
|
||||
new CommonClubsModelColumnString('address'),
|
||||
new CommonClubsModelColumnString('city'),
|
||||
new CommonClubsModelColumnString('homepage'),
|
||||
new CommonClubsModelColumnString('mail'),
|
||||
new CommonClubsModelColumnString('iban'),
|
||||
new CommonClubsModelColumnString('bic'),
|
||||
new CommonClubsModelColumnInt('charitable'),
|
||||
new CommonClubsModelColumnRef('president', 'CommonClubsModelUser')
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user