This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

david.bruenner30689
david.bruenner30689

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?

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.