On 03/04/2011 09:25 PM, Paola Alvarez wrote:
I have been reading this list before but this is my first post.
Reading some code from Symfony I got this: $this->getTable()->getColumns()
...when you can use this double method access?, I used before the
regular $this->getTable(), but two?. I mean I have been trying but I got an
* Fatal error: Call to a member function ... on a non-object in ...
I think the problem is $this->getTable() returns non-object.
There is nothing wrong with using multiply "->" as long as return-value
from previous call is an object.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php