DMZ 1.7.1 (DataMapper OverZealous Edition) |
[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.
[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.
[eluser]Spir[/eluser]
when ID is set ![]() Save on an Existing Object http://www.overzealous.com/dmz/pages/save.html
[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.
[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 ![]()
[eluser]Daniel H[/eluser]
It seems Overzealous.com is down at the moment, at least from the UK - Phil is there anything wrong?
[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 !
[eluser]GameFret[/eluser]
Yes, is anything wrong. I hope not. If so, can we help?
[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!
[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? |
Welcome Guest, Not a member yet? Register Sign In |