Hi, I'm totally new to OctoberCMS and found a nice tutorial on the watch-learn website (9 - Images and Galleries).
There is a one-to-one-Realtionship defined to an uploaded image. In the model Movie.php the relation is writen that way
public $attachOne = [
'poster' => 'System\Models\File'
];
But in the documentation is written that a one-to-oneRelation is defined that way
public $hasOne = [
'poster' => 'System\Models\File'
];
but this doen't work.
Can anybody explain me, why?