Removed some bugs in abstract class, added testcase
This commit is contained in:
@@ -127,7 +127,7 @@ abstract class AbstractCommonClubsModel
|
||||
{
|
||||
foreach($this->getFactory()->getAttributes() as $k => $v)
|
||||
{
|
||||
if($v['type'] !== 'ref')
|
||||
if(empty($v['type']) || $v['type'] !== 'ref')
|
||||
continue;
|
||||
|
||||
if(empty($v['ref']))
|
||||
@@ -148,7 +148,7 @@ abstract class AbstractCommonClubsModel
|
||||
return $factory->loadById($value);
|
||||
}
|
||||
|
||||
private static const CLASSNAME_MAP = array(
|
||||
private const CLASSNAME_MAP = array(
|
||||
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user