CodeIgniter-MY_Model
CodeIgniter-MY_Model copied to clipboard
Many to many Insert Update
Hi, How can Insert and Update with a model that has many to many relationship? For example products - id - name - price images_products (pivot) - product_id - image_id images
- id
- image
preparing to insert $product = array( 'name' => 'product 1', 'price' => 12, 'images' => array( 'image' => 'image_name.jpg', ), );
$this->product_model->insert($product);
But dont work. Thank You
That would be a great addition... unfortunately I haven't implemented it yet.
Ok, Thank you @avenirer