Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

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

Simple image has one question


Reply

2 Posts   1328 Views

Avatar
draft

31 August 2009 at 7:40pm Community Member, 57 Posts

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

Avatar
Willr

31 August 2009 at 9:58pm Forum Moderator, 5511 Posts

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.