Miesiąc: Marzec 2019

Notatnik programisty zawsze pod ręką!

aktualizacja symfony 1.4 do PHP 7.3

In %SF_LIB_DIR%/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Collection.php line 463 you will find: $record->$relation[‚alias’] = $this->reference; In PHP 5 this was interpreted as $record->${relation[‚alias’]} = $this->reference; what the author intended. In PHP7 it will be interpreted as ${record->$relation}[‚alias’] = $this->reference; what leads to the error regarding relations. To remedy this problem, just make the implicit explicit: $record->{$relation[‚alias’]} = $this->reference; and this…
Przeczytaj więcej