|
@@ 2022-2024 (lines=3) @@
|
| 2019 |
|
) { |
| 2020 |
|
$ids_for_removal = $columns_and_ids_for_deleting[$this->get_primary_key_field()->get_qualified_column()]; |
| 2021 |
|
foreach ($ids_for_removal as $id) { |
| 2022 |
|
if (isset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id])) { |
| 2023 |
|
unset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id]); |
| 2024 |
|
} |
| 2025 |
|
} |
| 2026 |
|
|
| 2027 |
|
// delete any extra meta attached to the deleted entities but ONLY if this model is not an instance of |
|
@@ 5278-5281 (lines=4) @@
|
| 5275 |
|
$this->_entity_map[EEM_Base::$_model_query_blog_id] = array(); |
| 5276 |
|
return true; |
| 5277 |
|
} |
| 5278 |
|
if (isset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id])) { |
| 5279 |
|
unset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id]); |
| 5280 |
|
return true; |
| 5281 |
|
} |
| 5282 |
|
return false; |
| 5283 |
|
} |
| 5284 |
|
|