Announcement

Symphony's issue tracker has been moved to Github.

Issues are displayed here for reference only and cannot be created or edited.

Browse

Closed#485: $this->Database no longer works in fields

This caused a significant number of extensions to break: members, number, order entries, pages select, publish tabs, reflection, search index, unique checkbox; and those were only the ones I’ve tested so far. We are retaining $_Parent in the Field class, so can we retain $Database too?

$this->Database = Symphony::Engine()->Database;

Will that affect memory usage, or is it just a reference pointer?

Seems like a small thing to retain some semblance of backwards compatibility. If all of these extensions do break, there is no chance I’m personally ever going to have the time or inclination to update a site to 2.2 if I have to go through the 40 installed extensions and fix ‘em because the API has changed!

Sorry, overzealous. Fixed in this commit

It is highly recommended that as developers try to use Symphony::Database() to access the Database object instead of $this->Database, $this->_Parent->Database or $this->_engine->Database().

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details