Re: Saving Multiple HABTM associations
Maybe check this thread (Bug in cake beta 1.2 model) http://groups.google.com/group/cake-php/browse_thread/thread/2ad48c4e10f58fc0/c7c4511051071b52 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Saving Multiple HABTM associations
1.2 beta Following is the sql file I am working from: http://pastebin.com/f5d3d7ec5 After I bake my MVC files and add a user, it is apparent that when save reaches the second HABTM association for my model it attempts to save data from my first HABTM association, as well as data from my second association. You can get a good idea of exactly what I'm talking about by importing my sql file, and baking. Comment out the redirect in the add action, and pay very close attention to the warning that you will see, and/or to the generated sql. If you don't feel like trying to reproduce this issue, you can check out my working reproduction at http://fuzz3.my-classes.org/users/. Add a user and select the first item from the shirt and shoe select box. Notice the error. Again, add another user, but this time select the first item from the shirt select box and the second item from shoes. Take a look at the generated sql. If you do attempt to reproduce this issue on your own box be sure to add some shirts and shoes! I want to be very clear here that I baked, commented out the redirect in the add action, and that was it. So, am I being an idiot or is this an issue with saving multiple HABTM associations in 1.2 beta? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Saving Multiple HABTM associations
Issue solved - PhpNuthttps://trac.cakephp.org/timeline 01/08/08 PhpNutsomewhere around that date pretty sure I fixed it AD7six https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/model/model.php#L1276 AD7sixleveille: if you use the branch code you are set. PhpNut is, like for many, your hero leveille PhpNut: Did you ever know that you're my hero. You're everything I would like to be PhpNutleveille: get in line, I am a lot of peoples hero leveille AD7six: PhpNut: Thanks guys. gwoo leveille you clearly do not PhpNut well enough AD7sixgwoo: do you PhpNut very well PhpNutleveille and AD7six : https://trac.cakephp.org/changeset/6317 On Jan 9, 10:15 pm, leveille [EMAIL PROTECTED] wrote: 1.2 beta Following is the sql file I am working from: http://pastebin.com/f5d3d7ec5 After I bake my MVC files and add a user, it is apparent that when save reaches the second HABTM association for my model it attempts to save data from my first HABTM association, as well as data from my second association. You can get a good idea of exactly what I'm talking about by importing my sql file, and baking. Comment out the redirect in the add action, and pay very close attention to the warning that you will see, and/or to the generated sql. If you don't feel like trying to reproduce this issue, you can check out my working reproduction athttp://fuzz3.my-classes.org/users/. Add a user and select the first item from the shirt and shoe select box. Notice the error. Again, add another user, but this time select the first item from the shirt select box and the second item from shoes. Take a look at the generated sql. If you do attempt to reproduce this issue on your own box be sure to add some shirts and shoes! I want to be very clear here that I baked, commented out the redirect in the add action, and that was it. So, am I being an idiot or is this an issue with saving multiple HABTM associations in 1.2 beta? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Saving Multiple HABTM associations
Here is the thread from irc. Read it to become enlightened! PhpNut https://trac.cakephp.org/timeline 01/08/08 PhpNutsomewhere around that date pretty sure I fixed it AD7six https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/model/model.php#L1276 AD7sixleveille: if you use the branch code you are set. PhpNut is, like for many, your hero leveille PhpNut: Did you ever know that you're my hero. You're everything I would like to be PhpNutleveille: get in line, I am a lot of peoples hero leveille AD7six: PhpNut: Thanks guys. gwoo leveille you clearly do not PhpNut well enough AD7sixgwoo: do you PhpNut very well PhpNutleveille and AD7six : https://trac.cakephp.org/changeset/6317 gwoo AD7six: unfortunately AD7sixit's great to have a verb named after you leveille funny stuff leveille I just started with cake 3 days ago. I've listed to all but one podcast. I'm just learning who these guys are. pr_ I'm doing a $session-check('Auth.User.id') in my login helper and it yields a fatal error - pr_ Fatal error: Can't use method return value in write context. What could be the problem? PhpNutcool leveille I'm getting hooked leveille thanks again. PhpNutdrink the kool-aid LemonNotGeoff_I have a model Article which has a table 'articles', how can i write data to the 'articles_history' table from within the beforeSave callback? leveille love the naming: 'core.primary_model', 'core.secondary_model', 'core.something', 'core.something_else', 'core.join_thing' Soul88Hello all. I've got a problem with obAuth component: I can't get the component to work correctly. For some reason I can't get the authentication to stay logged in. When I login in it takes me to the correct default page, but when I try to navigate anywhere else or refresh the same default page I am redirected to login as if I was never logged in. Soul88Any ideas? PhpNutleveille: must come from Java... leveille PhpNut: me? Not a chance. AD7sixLemonNotGeoff $this-ArticleHistory-save($stuff); LemonNotGeoff_hmm i need to create the actual model? booch Good morning everyone! On Jan 9, 10:15 pm, leveille [EMAIL PROTECTED] wrote: 1.2 beta Following is the sql file I am working from: http://pastebin.com/f5d3d7ec5 After I bake my MVC files and add a user, it is apparent that when save reaches the second HABTM association for my model it attempts to save data from my first HABTM association, as well as data from my second association. You can get a good idea of exactly what I'm talking about by importing my sql file, and baking. Comment out the redirect in the add action, and pay very close attention to the warning that you will see, and/or to the generated sql. If you don't feel like trying to reproduce this issue, you can check out my working reproduction athttp://fuzz3.my-classes.org/users/. Add a user and select the first item from the shirt and shoe select box. Notice the error. Again, add another user, but this time select the first item from the shirt select box and the second item from shoes. Take a look at the generated sql. If you do attempt to reproduce this issue on your own box be sure to add some shirts and shoes! I want to be very clear here that I baked, commented out the redirect in the add action, and that was it. So, am I being an idiot or is this an issue with saving multiple HABTM associations in 1.2 beta? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---