Ok I found my answer before this question cleared moderation.
public $hasAndBelongsToMany = array(
'Role' => array(
'className' => 'Role',
'joinTable' => 'roles_users',
'foreignKey' => 'user_id',
'assosciationForeignKey' => 'role_id',
'unique' => 'keepExisting'
)
);
Hello Everyone,
Im sorry if this was posted previously I did an exhaustive search
but im still lost. I am working on a SaaS app that allows a couple of our
domains to utilize the same codebase and I have come upon an issue with my
1 User to Many Roles. Im using cakePHP 2.3
I use 2 t