public function getAll($entity_guid) { $rows = []; foreach ($this->rows as $id => $row) { if ($row->entity_guid == $entity_guid) { $rows[] = new ElggMetadata($row); } } return $rows; }