I have 2 tables in my database: companies and employees. Each company can have multiple employees and each employee can work at multiple companies. Therefore I need a many-to-many relational table called companies_employees.
I think I understand the 'retrieve' and 'delete' parts of CRUD but how do you 'create' and 'update'? Let's say the user adds an employee to a company. What would the code be?