johnhamelink
6/19/2012 - 1:11 PM

home.php

            $repo = EntityManager::getInstance()->getRepository('callsheet');
            $collection = $repo->findAll();

            $result = $collection->forAll(function($e) {
                return $e->toJSON();
            })->toArray();

            return $result;