DMZ 1.7.1 (DataMapper OverZealous Edition) - 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: DMZ 1.7.1 (DataMapper OverZealous Edition) (/showthread.php?tid=28550) |
DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 06-01-2010 [eluser]OverZealous[/eluser] @j0nxiest You aren't using it right. The transaction hasn't failed, the validation has. You need to check the result of the $user->save() call to see if the validation failed. The validation result is also stored in $object->valid. Transactions are only used to group a series of queries, just like in normal SQL. DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 06-01-2010 [eluser]Benedikt[/eluser] [quote author="Benedikt" date="1275388239"] "UPDATE jn_house_user SET user_id = 1 WHERE user_id = 1" or similar.[/quote]When does it do the UPDATE? Maybe this would help me in finding my mistake. DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 06-01-2010 [eluser]Spir[/eluser] when ID is set Save on an Existing Object http://www.overzealous.com/dmz/pages/save.html DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 06-01-2010 [eluser]Benedikt[/eluser] But ID is not set. I changed the code to echo the ID but it's empty. EDIT: Ok, solved. I forgot to provide one relationship in the model's configuration. DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 06-01-2010 [eluser]Roobiz[/eluser] Hi guys, I have two models, Post and Category. Post have many relationship on Category, and Category have many relationship on Post. Is there a way to get all post without Category? I tried (without any hope) to make that: $oCat = new Category(); $oCat->get(); $oPost = new Post(); $oPost->where_not_in_related($oCat); Thanks DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 06-02-2010 [eluser]Daniel H[/eluser] It seems Overzealous.com is down at the moment, at least from the UK - Phil is there anything wrong? DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 06-03-2010 [eluser]sa3m[/eluser] Hi everyone, I really need to have DMZ but as Daniel H said, the website is down. Is there someone who knows where we can find it anywhere else ? Thank you ! DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 06-03-2010 [eluser]GameFret[/eluser] Yes, is anything wrong. I hope not. If so, can we help? DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 06-03-2010 [eluser]The Hamburgler[/eluser] If anyones got a fresh zip of the latest version I can host it as a backup. Unfortunately I've deleted mine :-( I remember making a mental note, the last time the server went down, to keep a backup but alas! DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 06-03-2010 [eluser]GameFret[/eluser] Yeah, I have the latest version downloaded at home. I also have it in multiple repositories and I can pull out all the needed files and recompress them into a download. I think I will wait and see if the project is completely gone or not. Does anyone have a backup of the documentation? |