Is it possible to get list of IDs of inserted relation model. Example:
$list = \Model_List::find(1); foreach(\Input::post('list_items') as $list_item): $list->items[] = new \Model_List(array($properties here)); endforeach; $list->save();
Can I get the ID's of the inserted list items here? I know I could simply loop trough the list items, but since I can add list items to existing list, I need to get only last inserted items...