Simple controllers (offer and position) are workign in the new oo format

This commit is contained in:
2019-06-04 16:51:50 +02:00
parent 616a0b7dd9
commit 16e7ed0bc0
17 changed files with 275 additions and 70 deletions

View File

@@ -40,9 +40,12 @@ abstract class AbstractCommonClubsModel
return $this->new;
}
public function setValues($values)
public function setValues($values, $unpack = false)
{
$this->values = $values;
if($unpack)
$this->values = $this->unpackExternalReferencesFromKeys($values);
else
$this->values = $values;
}
protected function setValue($key, $value)
@@ -351,4 +354,9 @@ abstract class AbstractCommonClubsModel
$this->setValues($vals);
}
public function dataIsValid()
{
return true;
}
}