$repo = EntityManager::getInstance()->getRepository('callsheet');
$collection = $repo->findAll();
$result = $collection->forAll(function($e) {
return $e->toJSON();
})->toArray();
return $result;