![]() |
Null saved on field_id related with save method of Datamapper - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Null saved on field_id related with save method of Datamapper (/showthread.php?tid=49578) |
Null saved on field_id related with save method of Datamapper - El Forum - 02-25-2012 [eluser]Unknown[/eluser] Hi people, sorry my english i'm speak spanish, I’ve start in Datamapper i have a problem when i try save a object in table related Code: class Topic extends DataMapper { answer table structure Code: CREATE TABLE IF NOT EXISTS `answers` ( when i want save new reply for one topic in answer table, topics_id before inserted take a NULL value and the new reply is correct inserted with the topic_id gived... WHAT IS WRONG IN MY FUNCTION? thanks for your replies... |