Re: [PHP] accessing magic parent set

2010-12-22 Thread David Harkness
On Wed, Dec 22, 2010 at 6:35 AM, Alexandru Patranescu wrote: > Is this the only way to access the magic __set from the parent class: > >parent::__set($columnName, $value); > Other than referencing the parent class by name which is worse, yes. > I would have liked to work this way: > >pa

Re: [PHP] accessing magic parent set

2010-12-22 Thread Ravi Gehlot
Hello, $this only calls variables inside of a method. In your function, you are calling a variable that was defined inside of your function called $columnName. You should past the whole class. Not just the methods. "The pseudo-variable $this is available when a method is called from within an obj