Re: [symfony-users] issue about selecting objects in an inheritance context

2009-11-30 Thread Patrick NDJIENTCHEU
Many thanks Alex, It works fine. On Sun, Nov 29, 2009 at 11:51 AM, Alexandre SALOME < alexandre.sal...@gmail.com> wrote: > You can get the raw value in template (don't absue of it) : > > $rawValue = $add->getRawValue(); > > > and then do your tests : > > if ($rawValue instanceof myClass) > { >

Re: [symfony-users] issue about selecting objects in an inheritance context

2009-11-29 Thread Alexandre SALOME
You can get the raw value in template (don't absue of it) : $rawValue = $add->getRawValue(); and then do your tests : if ($rawValue instanceof myClass) { //... } Alex' 2009/11/28 Patrick NDJIENTCHEU > Hi symfony people, > I have an issue that is quite annoying. > My environment is symfon

[symfony-users] issue about selecting objects in an inheritance context

2009-11-28 Thread Patrick NDJIENTCHEU
Hi symfony people, I have an issue that is quite annoying. My environment is symfony 1.2 and propel. I have a model where I have implemented inheritance using the single-table strategy. So, here is an excerpt of my model: *Ad* (id, posted_date, description) then *RealEstateAd*(location, price, tran