Re: saveAll Edit - Creates instead of Updating even with passed IDs

2009-05-19 Thread TGurske
I also tried this: $this-Promotion-title_id = $current['Promotion'] ['title_id']; But it did not work either... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: saveAll Edit - Creates instead of Updating even with passed IDs

2009-05-19 Thread TGurske
Absolutely: Here is the action: http://bin.cakephp.org/view/994290013 Here is the view: http://bin.cakephp.org/view/1805109334 Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this

Re: saveAll Edit - Creates instead of Updating even with passed IDs

2009-05-19 Thread TGurske
Hey, thanks for helping with this. Here is my model: http://bin.cakephp.org/view/1912370055 I thought it seemed backwards but users here said it made sense and that's what bake gave me so I stopped questioning it. Basically, I have listings, categories and promotions that all have titles and

Re: HELP - Search Pagination on three different models

2009-04-30 Thread TGurske
As a follow up - I ended up making a mysql view table with a UNION join to include the content from all the tables I wanted to search. Then I just searched that table. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Pagination with Random Order?

2009-04-08 Thread TGurske
Hey, It worked perfectly. I appreciate your help grigri!!! Here is what I used: var $paginate = array('Project' = array('conditions' = '','order' = '','limit' = 15)); function index() { // Sort Randomly Start if

Re: Pagination with Random Order?

2009-03-25 Thread TGurske
This rocks! I'll try it out. Thanks!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: Pagination: 'Location.Title.title' ????

2009-03-08 Thread TGurske
Ok. Thank you. On Mar 9, 12:22 am, Miles J mileswjohn...@gmail.com wrote: You can not go that deep into the array. Only the 1st and 2nd tiers work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To

Re: Model Q: HABTM association the right way to go?

2009-03-02 Thread TGurske
That seems to work but how do I get it to make a new id in the location table? In 'Location.0.name' I think it's trying to insert it into id '0'. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post

Re: Model Q: HABTM association the right way to go?

2009-03-02 Thread TGurske
Thanks for your help. From your example I was able to find this page: http://book.cakephp.org/view/84/Saving-Related-Model-Data-hasOne-hasMany-belongsTo which I never noticed before for some reason. It was helpful too but the validation always gives an error but I can fix that another time.

Re: Model Q: HABTM association the right way to go?

2009-02-26 Thread TGurske
That's how I initially set up the tables but when I baked it the bake defaults reversed everything - so all my edit views would give me a drop down list of location id's. It used belongsTo in the main tables and then hasOne and hasMany in the location table. So what should I use in the model?

Re: Model Q: HABTM association the right way to go?

2009-02-26 Thread TGurske
I guess that makes sense. What I need is that input to add a new location. Is there a way to do that? I tried Location.location (instead of location_id) but it doesn't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google