Message of the day:
Welcome to Silverstripe | Current release: https://www.silverstripe.org/download | Community Forum: https://forum.silverstripe.org | Feature requests: https://forum.silverstripe.org/c/feature-ideas
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.
so no effort talk, even better 😄