Skip to content
Snippets Groups Projects
Commit a47e4492 authored by Demian Katz's avatar Demian Katz
Browse files

Change event hooked for PostgreSQL bytea initialization.

- Fixes VUFIND-1214.
parent 17607905
Branches
Tags
No related merge requests found
...@@ -72,7 +72,7 @@ class Search extends Gateway ...@@ -72,7 +72,7 @@ class Search extends Gateway
} }
$eventFeature = new Feature\EventFeature(); $eventFeature = new Feature\EventFeature();
$eventFeature->getEventManager()->attach( $eventFeature->getEventManager()->attach(
Feature\EventFeature::EVENT_PRE_INSERT, [$this, 'onPreInsert'] Feature\EventFeature::EVENT_PRE_INITIALIZE, [$this, 'onPreInsert']
); );
$this->featureSet->addFeature($eventFeature); $this->featureSet->addFeature($eventFeature);
} }
...@@ -81,7 +81,7 @@ class Search extends Gateway ...@@ -81,7 +81,7 @@ class Search extends Gateway
} }
/** /**
* Customize the Insert object to include extra metadata about the * Customize the database object to include extra metadata about the
* search_object field so that it will be written correctly. This is * search_object field so that it will be written correctly. This is
* triggered only when we're interacting with PostgreSQL; MySQL works fine * triggered only when we're interacting with PostgreSQL; MySQL works fine
* without the extra hint. * without the extra hint.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment