Hi jojiju,
See the book:
http://book.cakephp.org/view/24/Model-and-Database-Conventions
"Join tables, used in hasAndBelongsToMany (HABTM) relationships
between models should be named after the model tables they will join
in alphabetical order (apples_zebras rather than zebras_apples)".
Therefo
thanks for reply,
but sorry to say that it doesn't work.actually my model looks like
as follows
employee.php
class Employee extends AppModel {
var $name = "Employee";
var $actsAs = array('extendAssociations');
var $hasAndBelongsToMany = array(
the default form action parameter is add ,as below, you just need to assign
it
echo $form->create('
>
> EmployeesAccreditation', array('action' => 'edit'));
On Sun, Sep 28, 2008 at 7:58 PM, jojiju <[EMAIL PROTECTED]> wrote:
>
> hi all,
>I have tables employees and accreditations and join ta
hi all,
I have tables employees and accreditations and join table called
employees_accreditations. now I want to build the edit form which
should populate the information both from employees and
accreditations. its driving me crazy please help.