Added code to simplify setting values
This commit is contained in:
@@ -45,6 +45,14 @@ abstract class AbstractCommonClubsModel
|
||||
$this->values = $values;
|
||||
}
|
||||
|
||||
protected function setValue($key, $value)
|
||||
{
|
||||
if(is_null($this->values))
|
||||
$this->loadDataFromDatabase();
|
||||
|
||||
$this->values[$key] = $value;
|
||||
}
|
||||
|
||||
public function markAsNew($new)
|
||||
{
|
||||
$this->new = $new;
|
||||
|
||||
Reference in New Issue
Block a user