$links = Model_Links::find('all', array('where'=>array(array('link_id', $set->id))));
foreach($links as $l) {
$item = Model_Links::find_one_by('id', $l->id);
$l->delete();
}
Returns | An array of instances with the loaded result, null when none found. |
---|
$links = Model_Links::query()->where('link_id', $set->id)->get();
foreach ($links as $l)
{
$l->delete();
}
Model_Sets::forge()->is_new();
It looks like you're new here. If you want to get involved, click one of these buttons!