Re: Issue with habtm

2011-09-07 Thread WebbedIT
Show us your form view code and then echo your resulting data array please. HTH, Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To

Issue with habtm

2011-09-06 Thread Ruslan Inozemtsev
Hello, i'm trying to start using HABTM in Cake 1.3, but can't understand how can i add an realtion. Im trynig to create new relation between User and Project records in DB, but no data apperas in users_projects after im saving data :( My code is: $data = array( 'User' => array('id' => 1),

Re: Basic issue with HABTM

2010-11-03 Thread cricket
On Tue, Nov 2, 2010 at 8:47 PM, Fernando Barrocal wrote: > Some updates on here (paste bins are used to delete my post even when I ask > to mantain) > /* Tables /* > users              people           contacts > -- 1<--->1 n<--->n -- > id                 id              

Re: Basic issue with HABTM

2010-11-02 Thread Fernando Barrocal
Some updates on here (paste bins are used to delete my post even when I ask to mantain) /* Tables /* users people contacts -- 1<--->1 n<--->n -- id id id username user_id phone f_na

Basic issue with HABTM

2010-11-02 Thread Fernando Barrocal
Hi guys, I am having some trouble with pretty basic things but it took me precious hours today, and I decided to ask for some light ... I have this config that I am trying to make work: http://bin.cakephp.org/view/2004163346 I baked everything with cake bake and I need a way to proper save all

Re: Issue with HABTM, LIMIT and the created SQL statements

2009-04-18 Thread John Andersen
Thanks a lot Brian, The second link certainly helped me on the way to a solution! Also thanks for pointing out my naming error :) That will be fixed! Enjoy, John On Apr 18, 7:50 pm, brian wrote: > I'm not sure I follow all that but I think these may be some use: > > http://teknoid.wordpress

Re: Issue with HABTM, LIMIT and the created SQL statements

2009-04-18 Thread brian
I'm not sure I follow all that but I think these may be some use: http://teknoid.wordpress.com/2008/07/17/forcing-an-sql-join-in-cakephp/ http://bakery.cakephp.org/articles/view/quick-tip-doing-ad-hoc-joins-in-model-find Also, your join table should be named "articles_collections". On Sat, Apr

Issue with HABTM, LIMIT and the created SQL statements

2009-04-18 Thread John Andersen
Dear all, Having three tables in a standard HABTM configuration: Model "Article" HABTM model "Collection" Model "Collection" HABTM model "Article" Giving the tables "articles" -> "article_collections" -> "collections". My goal is to retrieve 4 of the articles which are related to the collectio