nightjarnz

other way around. DriverID should be on that object, Member will probably have nothing (has one, not has many)

Firesphere

If the Member (DriverID) is set, that should be possible

Mario

Hej @Firesphere There’s already a column MemberID for this DataObject. But as soon as I add the has_one the site crashes without error. And I want to access the member via $this->Driver().

Firesphere

There are no restrictions, but just your has_one doesn't tell much 🙂

Mario

I’m trying to create a has_one relation to a SilverStripe\Security\Member, but it doesn’t seem to work. Are there any restrictions?

  1. private static $has_one = [
  2. 'Startnumber' => EscStartnumber::class,
  3. 'Race' => EscRace::class,
  4. 'Season' => EscSeason::class,
  5. 'Driver' => Member::class,
  6. 'Class' => EscClass::class
  7. ];
nathan

Security updates for PHP 7.0 are still offered on Ubuntu 16.04 LTS. Ironically, it's the opposite.... server's on 7.2 and local VM is on 7.0. An upgrade to both will come soon.

👍 (1)
nightjarnz

Yeah that's a point. E.g. If the site was developed (locally) on PHP 7.2, but the server runs PHP 7.0, then composer install is going to have a bad time :/

Firesphere

An update often would work then, but still, using 7.0 is not a good idea