Questions tagged as 'habtm'

1
answer

CakePHP relationship HABTM

I have a question regarding the CakePHP Framework . It is as follows: Suppose we have a hasAndBelongsToMany (HABTM) relationship between a Model Pessoas and Projetos , with tables with the same name. The join table is pe...
asked by 17.07.2014 / 19:07
1
answer

CakePHP3 HABTM error inserting data into table

I have the error Can not insert row in "addresses_companies" table, it has no primary key in my application, after entering a company and filling in the address data and selecting a company appears the error quoted above. Follow the code below...
asked by 24.08.2015 / 04:29
1
answer

Update with HABTM template - CakePHP

I'm having trouble inserting or changing data using the HABTM template, it does not recognize 3 fields, but is recognizing hidden fields normally. It follows the files with programming, they are 3 tables, one with the data of the clients, oth...
asked by 29.04.2014 / 16:38
1
answer

How to save a HABTM after the save in the controller?

I have a table on Users HABTM Solicitations . After salver my request, I want to include a new data in table solicitations_users if($this->request->is('post')) { $this->Solicitation->save($this->request->...
asked by 17.03.2014 / 14:28