Log message #107997

# At Username Text
# 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()
# Aug 7th 2008, 01:08 TonkaTruck Eddie_CRO: That last sentence of the containable page contains some very key info....that contain() can use standard Model->find() options.
# Aug 7th 2008, 01:07 Eddie_CRO ok, will try.
# Aug 7th 2008, 01:07 Eddie_CRO aaaa
# Aug 7th 2008, 01:07 TonkaTruck Eddie_CRO: I didn't even notice that when you originally pasted it.
# Aug 7th 2008, 01:07 Traveler6 like I want to have a check in the controller
# Aug 7th 2008, 01:06 Traveler6 i want to perform some actions if the user is updating a row. but i want to be able to do it globally, and not have to put code in the admin_edit admin_add fields etc..
# Aug 7th 2008, 01:06 TonkaTruck Eddie_CRO: See the very end of this page: http://book.cakephp.org/view/474/containable
# Aug 7th 2008, 01:06 Eddie_CRO i didn't understand it that way. wait to try.
# Aug 7th 2008, 01:06 Eddie_CRO hm
# Aug 7th 2008, 01:05 TonkaTruck Eddie_CRO: I just noticed something. Where you have 'Category' => array() < that array should have 'conditions' => array('Group.name' => 'some_name') right?
# Aug 7th 2008, 01:05 polerin Traveler6: ask the question more specifically, what problem are you having or are trying to solve?
# Aug 7th 2008, 01:04 poluta1 hello anybody know how to make ajax observeField stay selected if a user submitting form, and user forget to fill valid email
# Aug 7th 2008, 01:04 Eddie_CRO tonka: yes, but how to do that then?
# Aug 7th 2008, 01:03 polerin becasue it is full of win and absolute awesome.