do not store difficulty as author
This commit is contained in:
parent
0c406c54af
commit
6f66a44e69
@ -134,10 +134,10 @@ final class RecipeModel
|
|||||||
return $this->A_INGREDIENTS;
|
return $this->A_INGREDIENTS;
|
||||||
}
|
}
|
||||||
public function getDifficulty(){
|
public function getDifficulty(){
|
||||||
if($this->O_AUTHOR === null){
|
if($this->O_DIFFICULTY === null){
|
||||||
$this->O_AUTHOR = DifficultyModel::getByID($this->I_DIFFICULTY_ID);
|
$this->O_DIFFICULTY = DifficultyModel::getByID($this->I_DIFFICULTY_ID);
|
||||||
}
|
}
|
||||||
return $this->O_AUTHOR;
|
return $this->O_DIFFICULTY;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getApprs(){
|
public function getApprs(){
|
||||||
|
Loading…
Reference in New Issue
Block a user