public function findOneById($id) { $hydrated = $this->findBy('id', $id, true); return isset($hydrated[0]) ? $hydrated[0] : null; }