Hey, Im just wondering how you use data from the database in your templates / actions.
There is the one way using the functions of the model classes. For example : $articles = ArticlePeer::retrieveByPks( <http://www.php.net/array> array(123, 124, 125)); Or one of the doSelectJoinsXXX functions. The other way would be to do a doSelect(), doSelectRS() or a custom query. When I use the first one, I got a hydrated array. So I can display all my data with ->getName(), ->getId() functions. When I use the 2nd and 3rd options, I couldnt sometimes hydrate my objects ( i.e. when I use some complex sql queries ). My thoughts are now to unify those array / objects for my actions and templates. I dont want to use sometimes $dbObject->getName() and $dbObject->getId() and sometimes $dbObject->getString(NAME) and $dbObject->getInt(ID). Think this could create some trouble in the future in my templates and actions when I use different kind of objects in my templates and actions (especially when working with more designer and developer). Should I loop over those array and create a new one like $dbobject[NAME] in my model classes and use this in all my templates or actions ? But I think this will create some overload of array etc.? What do you think or use for yourself? Any help or thoughts would be appreciated Kind regards Marco -- Marco Schierhorn Technical Director ------------------------------------------------------------------- ESV Media GmbH Meerbuscher Str. 64-78 | 40670 Meerbusch Tel. +49 (0)2159 / 9297-930 | Fax. +49 (0)2159 / 9297-931 Mobil +49 (0)173 / 99 37 000 www.esv-group.de | [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Geschäftsführer: Heinz Eissing Amtsgericht | Neuss HRB 12902 Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---