there is no remove many-to-many relationship method for fActiveRecords #106

jeffturcotte opened this Issue Jul 11, 2012 · 0 comments

1 participant

Flourish member

Ticket #724 by unstoppablecarl

you have to write something like this every time class User{ public function removeFromGroup($group){ $result = $db→query("DELETE FROM users_groups WHERE user_id= %i AND group_id = %i", $this→getId(), $group→getId()); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment