CodeIgniter Forums
ORM Datamapper Relationship problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: ORM Datamapper Relationship problem (/showthread.php?tid=57968)



ORM Datamapper Relationship problem - El Forum - 04-30-2013

[eluser]cehennem[/eluser]
Hey there,

I have two tables named users and photos.

Users have many photos while a photo would have just one user, related with "owner_id" field in photos table.

I wanted to use "pictures" word as relationship name instead of "photos" .. Here is the configuration I've finally ended up, which seems doesn't work by causing "Unable to relate user with photo." error.

Look at this picture for all details you would ask;

http://enes.tekkilavuz.net/images/problem_1.jpg

Thanks for ideas!