thanks jon! could've done that myself now that I see it.. ;) On 15 Mrz., 04:13, Jonathan Wage <jonw...@gmail.com> wrote: > function getValueFor($tableName, $id, $columnName) > { > $object = call_user_func_array(array($tableName.'Peer', 'retrieveByPk'), > array($id)); > return $object->{'get'.sfInflector::camelize($columnName)}; > > } > > I think something like this? > > - Jon > > On Sun, Mar 14, 2010 at 4:43 PM, Christian Schaefer <cae...@gmail.com>wrote: > > > > > > > hi all, > > > can somebody translate this simple function to use Propel instead of > > Doctrine? > > > {{{ > > function getValueFor($tableName, $id, $columnName) > > { > > $table = Doctrine::getTable($tableName); > > $object = $table->find($id); > > return $object->$columnName; > > } > > }}} > > > Thanks a lot! > > /Christian > > > -- > > If you want to report a vulnerability issue on symfony, please send it to > > security at symfony-project.com > > > 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 > > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@goog > > legroups.com> > > For more options, visit this group at > >http://groups.google.com/group/symfony-users?hl=en > > -- > Jonathan H. Wage (+1 415 992 5468) > Open Source Software Developer & Evangelist > sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org > > You should follow me on Twitter:http://www.twitter.com/jwage > > You can contact Jonathan about Doctrine, Symfony and Open-Source or for > training, consulting, application development, or business related questions > at jonathan.w...@sensio.com
-- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en