Jump to:

10845 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Simple image has one question

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1260 Views
  • draft
    Avatar
    Community Member
    57 Posts

    Simple image has one question Link to this post

    Hi,

    I'm new to ss, and i have a simple question, i need to know when we create has one image, where do you we find the url to the image on the database ?
    For example, from the tutorial 2 :

    static $has_one = array(
    'Photo' => 'Image'
    );

    It said : By using the $has_one array, we create a relationship between the StaffPage table and the Image table by storing the id of the respective Image in the StaffPage table.

    I saw that staffpage table has PhotoID, but i can't find image table? Where can i find which url is the PhotoID refer to.

    Thx before..

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Simple image has one question Link to this post

    An image extends the file object (which has all the Filename, Title Fields) so the information for the image is in the 'File' table. An Image table would only exist if image had special properties on top of the file objects fields.

    1260 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.