CodeIgniter Forums
[Deprecated] DMZ 1.5.3 (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: [Deprecated] DMZ 1.5.3 (DataMapper OverZealous Edition) (/showthread.php?tid=18196)



[Deprecated] DMZ 1.5.3 (DataMapper OverZealous Edition) - El Forum - 10-21-2009

[eluser]BrianDHall[/eluser]
DMZ rules!

...that's all. Just felt like posting something.


[Deprecated] DMZ 1.5.3 (DataMapper OverZealous Edition) - El Forum - 10-21-2009

[eluser]OverZealous[/eluser]
UPDATED

I went ahead and fixed the docs, packaged up my changes, and put them on the server.

As promised, I also started a new thread. Please post all new discussions there.

Please continue discussions of DMZ here.


[Deprecated] DMZ 1.5.3 (DataMapper OverZealous Edition) - El Forum - 10-21-2009

[eluser]Benedikt[/eluser]
@OverZealous: Thanks for your answer. The manual is good but still there are a lot of thinks not clear enough to be understood easily. Sure for you as an experienced ORM user everything seems logical and very clear, but not as a beginner.

Thanks for your time.


[Deprecated] DMZ 1.5.3 (DataMapper OverZealous Edition) - El Forum - 11-10-2009

[eluser]Mirage[/eluser]
Question: Why doesn't DataMapper automatically try to insert new relations. Right now I have to save related items before I can save the relation itself

Code:
// Each contribution record has ONE transaction
// This works:
$contrib = new Contribution();
$trans    = new Transaction();

$trans->save();
$contrib->save($trans);

// This doesn't work
$contrib = new Contribution();
$trans    = new Transaction();

$contrib->save($trans);

Hope I'm making myself clear. Both objects represent NEW records - I'd have thought that if record has never been saved, DMZ would just go ahead and make it so.

Thanks,
Juergen


[Deprecated] DMZ 1.5.3 (DataMapper OverZealous Edition) - El Forum - 06-11-2011

[eluser]EmnaKhemiri[/eluser]
Employee management and lone worker protection and solutions - health and safety UK - http://www.loneworkersystems.co.uk