Hi guys, I have the following problem:
I got a "Question"-Controller. Every question has a querist, which ID is saved together with the row of each question. Now I have a fetchAll() method in model of the question. With that method I want to get all questions with the name of the querist, so I make a join with the querst table. But what should my fetchAll() method return? An string array or an array with question-objects? If I want to return objects, I had to expand the question-class with attributes for the name of the querist. But I dont know if this is the correct way. Or should I create querist-objects in the view? Or is it correct to return an array ? Sorry for this 'strange' question, I'm new to the zend framework and the MVC concept. I'm a little bit confused and I hope you can show me the right way to implement this. Thanks a lot. -- View this message in context: http://www.nabble.com/Structure-of-a-model-tp24792847p24792847.html Sent from the Zend Framework mailing list archive at Nabble.com.
