What is $this->status_objects? How is it defined? Do you use Propel or Doctrine to get data from your database?
If Doctrine then I don't know, but if Propel and you had at some point perhaps: $this->status_objects = StatusObjectsClass::doSelect(new Criteria()); Then $this->status_objects would be an array as you defined above but remember $key needs to be an integer as Propel will store the result objects in a numeric indexed array. Therefore make sure that the key that is passed or the actual creation of $this->status_objects (possibly using a var_dump($this->status_objects) call on it) was successful. It might get you one step closer to troubleshooting On Fri, Jul 24, 2009 at 3:10 AM, -gary- <gary.dun...@gmail.com> wrote: > > Yes, my: > > public function getStatusObject($key) > { > return (isset($this->status_objects[$key])) ? $this- > >status_objects [$key] : null; > } > > is not returning an object and that why I'm having problems in the > template. > > Anyone have any idea on this please? > I'd appreciate any help at all. > > Thank you for reading. > > > > -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---