Exemple #1
0
 /**
  * 
  * @return model Model of this entry
  */
 public function getEntry()
 {
     $entry_id = $this->entry_id;
     $type = $this->type;
     $type_name = EntryType::find($type)->type;
     $entry = $type_name::find($entry_id);
     return $entry;
 }
 public static function getId($entry_type)
 {
     return EntryType::where('type', $entry_type)->get()->first()->id;
 }
 function __construct($type)
 {
     parent::__construct($type);
 }