I need to add a ROLE relation to a USER.
So I did the following:
$user->add('roles', $roles_ids_array );
It works, but the system tries to add it without checking if the relation ALREADY EXISTS in the DB, giving me a mysql "Duplicate entry" error.
In Kohana 2.x it works perfectly (the system does the auto check). Is there an easy to do this in KO3.3?
How can I do that without using $user->has(etc)
?