johnhamelink
6/19/2012 - 1:14 PM

home.php

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

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

            return $result;