# |
Aug 7th 2008, 01:34 |
primeminister |
achew22: sorry, never seen something like this :) |
# |
Aug 7th 2008, 01:34 |
achew22 |
yep |
# |
Aug 7th 2008, 01:34 |
primeminister |
achew22: and map will do the magic? |
# |
Aug 7th 2008, 01:33 |
achew22 |
primeminister: anyways, those are xpaths on the right and on the left it puts them in (the 1st one as an example) $results[$I]['Transaction']['guid'] = $guid |
# |
Aug 7th 2008, 01:33 |
Kitara |
m00 |
# |
Aug 7th 2008, 01:33 |
achew22 |
lol |
# |
Aug 7th 2008, 01:32 |
primeminister |
*** EEEEEEEVIL **** |
# |
Aug 7th 2008, 01:32 |
primeminister |
D MUWAHAHAHAHAHAH |
# |
Aug 7th 2008, 01:32 |
achew22 |
primeminister and I are just really loud |
# |
Aug 7th 2008, 01:32 |
Traveler6 |
this chat is busy |
# |
Aug 7th 2008, 01:32 |
achew22 |
no more web service crap |
# |
Aug 7th 2008, 01:32 |
achew22 |
lol I guess |
# |
Aug 7th 2008, 01:31 |
primeminister |
cool! |
# |
Aug 7th 2008, 01:31 |
achew22 |
strangely enough |
# |
Aug 7th 2008, 01:31 |
achew22 |
save did it perfectly |
# |
Aug 7th 2008, 01:31 |
primeminister |
achew22: nirmally you do a saveAll? But now it is handled by save! |
# |
Aug 7th 2008, 01:31 |
achew22 |
primeminister: saving me hours on working those arrays out the hard way |
# |
Aug 7th 2008, 01:31 |
Traveler6 |
how do i check if a page is cached? |
# |
Aug 7th 2008, 01:31 |
primeminister |
) |
# |
Aug 7th 2008, 01:31 |
achew22 |
those should be saveall |
# |
Aug 7th 2008, 01:31 |
achew22 |
its damn cool, it turns that into a nested array that fits perfectly into saveall |
# |
Aug 7th 2008, 01:30 |
primeminister |
achew22: if you define that as a webservice and map it then Model::save() will send it? or save it to the database? |
# |
Aug 7th 2008, 01:29 |
primeminister |
ACTION looking for cheap tickets to argentina in december :) |
# |
Aug 7th 2008, 01:29 |
achew22 |
muahahaha |
# |
Aug 7th 2008, 01:29 |
achew22 |
primeminister: http://bin.cakephp.org/view/468901659 |
# |
Aug 7th 2008, 01:28 |
achew22 |
awesome thanks to this |
# |
Aug 7th 2008, 01:28 |
primeminister |
and yes! |
# |
Aug 7th 2008, 01:28 |
primeminister |
achew22: morning. how are you |
# |
Aug 7th 2008, 01:28 |
achew22 |
would you like to see something cool? |
# |
Aug 7th 2008, 01:28 |
achew22 |
primeminister: |
# |
Aug 7th 2008, 01:15 |
Eddie_CRO |
thanks anyway! |
# |
Aug 7th 2008, 01:15 |
Eddie_CRO |
not working. but got something different. will try to do it, have to go now. |
# |
Aug 7th 2008, 01:12 |
Traveler6 |
yeah |
# |
Aug 7th 2008, 01:11 |
polerin |
that's a starting place at least |
# |
Aug 7th 2008, 01:11 |
Traveler6 |
ok |
# |
Aug 7th 2008, 01:11 |
polerin |
if you want to go digging yourself, I reccomend looking at what Model::create() does to the object |
# |
Aug 7th 2008, 01:11 |
Traveler6 |
that seems like a pretty complicated solution |
# |
Aug 7th 2008, 01:10 |
polerin |
so it's existance is not a dead give |
# |
Aug 7th 2008, 01:10 |
polerin |
only reason I'm suggesting the call to exists() is for models that don't have an auto-incrementing or creating id field, you'd obviously need to have the id for the insert |
# |
Aug 7th 2008, 01:10 |
polerin |
Traveler6: I'm sure there is a MUCH better way of doing it, but that's about the best I can give you at 1:30 in the morning and no time to go digging in code |
# |
Aug 7th 2008, 01:09 |
polerin |
Traveler6: there is probably better way to do it, and if you dig into the model source you can likely find it, but first off I would check for the existance of the model's id field in the data. If it's not there it's likely that it's a insert... if it is there genrally it's going to be an update, but you can check by calling exists() |