I have been using Codeigniter with Doctrine 1.2.3 and I am wondering is it possible to use own kind of service classes(like in java ee with hibernate). And how to make those right etc?
Like this:
class FeedbacktypeService {
public function getFeedbacksByName($value=''){
$q = Doctrine_Query::create()
->from("Feedbacktype f")
->where('f.name LIKE :name', array(':name' => $value));
return $q->execute();
}}
Is there better way to do this? Thanks for your answers and opinions.