Tag Archives: override

Symfony override getter

Similar to overriding setters, overriding getters in symfony has a strange syntax. Rather than doing the normal override code you must use special methods. This code will NOT work consistently: However, this code will work: Although the first code will … Continue reading

Posted in 1.4, Symfony | Tagged , , , , | 1 Comment

Symfony/Doctrine and Setters

Apparently when using Symfony 1.4 with Doctrine, you can’t simply override the setters the way most programmers are use to.  The following code example will cause infinite recursion if placed inside a class that extends sfDoctrineRecord: Instead you have to … Continue reading

Posted in Symfony | Tagged , , , | 2 Comments