Fixes #1686 - added notes to model

This commit is contained in:
snipe
2016-01-27 20:39:19 -08:00
parent f121766037
commit e70dab64a2
9 changed files with 167 additions and 103 deletions
+10
View File
@@ -48,6 +48,16 @@ class Model extends Elegant
return $this->belongsTo('CustomFieldset','fieldset_id');
}
public function getNote() {
$Parsedown = new Parsedown();
if ($this->note) {
return $Parsedown->text(e($this->note));
}
}
/**
* -----------------------------------------------
* BEGIN QUERY SCOPES