- #1132034 - Don't assume entity is a stdClass. NOTE: Any field handler prepare()
or complete() methods you have defined must also be changed to not specify stdClass
for the $entity argument.
+- #952380 - Handle call to watchdog before dbtng initialized.
- #1126108 - Fix undefined variables in XML error handling.
- #1117602 - Bad counts reported on bulk rollback.
- #1118480 - Document _name arguments to file fields.
* @param array $log_entry
*/
function migrate_watchdog($log_entry) {
- // Validate that Migration is registered (if we get called due to an error
- // during the registry build, we're screwed)
- $name = db_select('autoload_registry', 'r')
- ->fields('r', array('name'))
- ->condition('name', 'Migration')
- ->condition('type', 'class')
- ->execute()
- ->fetchField();
+ // Validate that Migration is registered. Don't use DBTNG so we can carry on
+ // if there's a notice/warning during the registry rebuild.
+ $name = db_result(db_query("SELECT r.name
+ FROM {autoload_registry} r
+ WHERE name = 'Migration' AND type = 'class'"));
if ($name) {
if ($migration = Migration::currentMigration()) {
switch ($log_entry['severity']) {