# |
Oct 22nd 2009, 15:58 |
arz |
Hello All, using Curl model from http://bakery.cakephp.org/articles/view/curl-model (model is tableless), controller name is searches, form input name in view is search, the question is how do i validate input data? |
# |
Oct 22nd 2009, 15:58 |
jessica-m |
i have debug on and i am looking at the queries |
# |
Oct 22nd 2009, 15:58 |
jessica-m |
its not even trying to delete |
# |
Oct 22nd 2009, 15:58 |
jessica-m |
yes! |
# |
Oct 22nd 2009, 15:57 |
Ceeram |
dogmatic69: the channel doesnt have autocomplete ;) : dogmatic69> does cake un and pw have del priv in mysql? |
# |
Oct 22nd 2009, 15:56 |
jessica-m |
its just inserting |
# |
Oct 22nd 2009, 15:56 |
jessica-m |
its never deleting |
# |
Oct 22nd 2009, 15:52 |
jessica-m |
thats kinda the problem i am having |
# |
Oct 22nd 2009, 15:52 |
jessica-m |
https://trac.cakephp.org/ticket/5579 |
# |
Oct 22nd 2009, 15:51 |
jessica-m |
when i update a user to have fewer groups, it isnt deleting the previous groups in the table |
# |
Oct 22nd 2009, 15:50 |
jessica-m |
i can delete users fine |
# |
Oct 22nd 2009, 15:50 |
jessica-m |
yeah |
# |
Oct 22nd 2009, 15:50 |
dogmatic69 |
does cake un and pw have del priv in mysql? |
# |
Oct 22nd 2009, 15:49 |
jessica-m |
yeah |
# |
Oct 22nd 2009, 15:49 |
dogmatic69 |
jessica-m: still the delete? |
# |
Oct 22nd 2009, 15:49 |
jessica-m |
does anyone have any idea why that would happen? i just want to know what i could have done to affect that |
# |
Oct 22nd 2009, 15:47 |
alan|macbook |
i feel like i'm going to have a hard night working... |
# |
Oct 22nd 2009, 15:47 |
alan|macbook |
dogmatic69 : ooookayyyyy |
# |
Oct 22nd 2009, 15:46 |
dogmatic69 |
alan|macbook: you will need to hack the code in the helper :) |
# |
Oct 22nd 2009, 15:45 |
alan|macbook |
dogmatic69 : ok. Now it's time to use this tree helper to generate checkboxes. Any idea about how to do that ? |
# |
Oct 22nd 2009, 15:43 |
jessica-m |
what would cause my save function to not remove habtm rows before saving? |
# |
Oct 22nd 2009, 15:43 |
gimlilongbow |
Ah, it has to do with the way I'm setting the _explicitType property of the arrays. Fun. Thanks for the help, guys. |
# |
Oct 22nd 2009, 15:40 |
gimlilongbow |
Jagaroth: any suggestions? |
# |
Oct 22nd 2009, 15:39 |
n3rdbeere |
no, you didn't |
# |
Oct 22nd 2009, 15:38 |
gimlilongbow |
Jagaroth: did I miss anything? |
# |
Oct 22nd 2009, 15:38 |
n3rdbeere |
i accidentally the whole irc |
# |
Oct 22nd 2009, 15:37 |
gimlilongbow |
Agh, I disconnected accidentally. |
# |
Oct 22nd 2009, 15:34 |
gimlilongbow |
Or it would be if I hit the right button: http://bin.cakephp.org/view/1436843275 |
# |
Oct 22nd 2009, 15:33 |
alkemann |
~logs |
# |
Oct 22nd 2009, 15:33 |
gimlilongbow |
Jagaroth: updated: http://bin.cakephp.org/pastes/edit/51781 |
# |
Oct 22nd 2009, 15:32 |
gimlilongbow |
No, that pastebin shows the debug of the Set::map($results). Oh, you wanted the results. Sorry, one sec. |
# |
Oct 22nd 2009, 15:31 |
Jagaroth |
gimlilongbow: You are executing Set::map($results)... the pastebin shows $results? |
# |
Oct 22nd 2009, 15:31 |
gimlilongbow |
Um, I thought set::map() went from array to object. |
# |
Oct 22nd 2009, 15:30 |
Jagaroth |
gimlilongbow: Doesn't map() go the other way? |
# |
Oct 22nd 2009, 15:30 |
jessica-m |
does anyone have any idea why that would happen? |
# |
Oct 22nd 2009, 15:29 |
gimlilongbow |
Jagaroth: here's the output: http://bin.cakephp.org/view/1436843275 |
# |
Oct 22nd 2009, 15:28 |
gimlilongbow |
Okay, let me trim it down to just the trouble area. One sec. |
# |
Oct 22nd 2009, 15:28 |
Jagaroth |
gimlilongbow: Add debug($results) to the pastebin. |
# |
Oct 22nd 2009, 15:27 |
gimlilongbow |
Here's my code which actually does the Containable behavior that generates the results: http://bin.cakephp.org/view/1585860775 |
# |
Oct 22nd 2009, 15:26 |
gimlilongbow |
debug( Set::map($results) ); |
# |
Oct 22nd 2009, 15:26 |
Jagaroth |
gimlilongbow: Let's see PostsController::test() - APP/controllers/posts_controller.php, line 279 |