Revize dc0fb924
Přidáno uživatelem Marek Zábran před téměř 5 roky(ů)
app/Artefact.php | ||
---|---|---|
35 | 35 |
return $this->hasMany('App\Metadata'); |
36 | 36 |
} |
37 | 37 | |
38 |
/** |
|
39 |
* Get the main category for the artefact. |
|
40 |
*/ |
|
41 |
public function main_category() |
|
42 |
{ |
|
43 |
return $this->hasOne('App\Category', 'main_category_id'); |
|
44 |
} |
|
45 | ||
38 | 46 |
/** |
39 | 47 |
* Get the categories for the artefact. |
40 | 48 |
*/ |
Také k dispozici: Unified diff
Dodělání hlavní categorie dle hovoru s Fišárkem.