Message of the day:
Welcome to SilverStripe | Current stable: https://goo.gl/C4F1T9 | Feature requests: https://goo.gl/EcQ34L | Community Forum: https://forum.silverstripe.org | StripeCon EU 2019! https://stripecon.eu
If you have any SilverStripe related questions, please supply the version of Framework you're using.
Did you flush? 🚽 =
yeah that $owns thing is not really well done nor referenced in the documentation ^^
oh yea always forget the $owns 🙈 yep that's the issue... thanks @dorsetdigital 👏
Is it published?
- private static $has_one = [
- 'File' => File::class,
File the relation name on the document?
My brain aint working right now
- <% loop $Documents %>
- <!-- Document has_one File -->
- $FileID <!-- works -->
- $File.ID <!-- nope -->
- <a href="$File.Link"><p>$Title</p></a>
- <% end_loop %>
Why can't I access the File object? I've fallen into this trap so many times before.. 🙈
Nope. Haha. I know Damian.
Oh no. Confusing people at cons. Great blog post though.