If it's essentially a factory class that generates data perhaps put it in
'Service', otherwise if it's a model yea put it in Entity.


On 2 March 2014 15:57, stumo <notifications@github.com> wrote:

> In src/Acts/CamdramBundle/Controller/EmailBuilderController.php:
>
> > +        if($allPerformancesA[0]['datetime'] == $allPerformancesB[0]['datetime']){
> > +                return strcmp($a->getName(), $b ->getName());
> > +        }
> > +
> > +        if($allPerformancesA[0]['datetime'] < $allPerformancesB[0]['datetime']){
> > +            return -1;
> > +        }
> > +        return 1;
> > +    }
> > +
> > +    private function PositionCmp($a, $b){
> > +        return strcmp( $a['position'], $b['position']);
> > +    }
> > +
> > +
> > +}
>
> If I do create a class - where should it live? Is it still an "Entity"?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/camdram/camdram/pull/105/files#r10195954>
> .
>