Jump to:

22977 Posts in 11758 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Making Quotes on page, then relationship error. Need advice.

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 766 Views
  • dab
    Avatar
    Community Member
    50 Posts

    Making Quotes on page, then relationship error. Need advice. Link to this post

    Im follow http://doc.silverstripe.com/doku.php?id=recipes:example_of_quotes_on_a_page, everything works fine (except it show unicode characters wrong, see screenshot). Then i made NewsHolder/NewsPage extends Page class, and now i get error while try to open NewsHolder Page in CMS: ERROR [Warning]: Can't find a has_one relationship from 'Quote' to 'NewsHolder'.

    I add    
    static $has_one = array(
          'Page' => 'Page', 'NewsHolder' => 'NewsHolder', 'NewsPage' => 'NewsPage'
       );

    but it still dont work.
    Please explain me how it should be for correct work.
    Thank you.

    Attached Files
    766 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.