[PR #75] [MERGED] Suppressed an "undefined variable" notice by adding initialization code #7677

Closed
opened 2026-01-22 15:56:18 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/75
Author: @joshiausdemwald
Created: 6/20/2011
Status: Merged
Merged: 6/20/2011
Merged by: @guilhermeblanco

Base: masterHead: DatabaseDriver_Corrections


📝 Commits (1)

  • c05fffc Suppressed php undefined variable notice adding initialization code to Doctrine\ORM\Mapping\Driver\DatabaseDriver.php

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php (+2 -0)

📄 Description

Suppressed an "undefined variable" notice by adding initialization code to Doctrine\ORM\Mapping\Driver\DatabaseDriver::reverseEngineerMappingFromDatabase().

This silly edge case only occurs when the database the mapping information should be imported from is empty.

Only one line has been inserted ($tables = array()) before the loop statement.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/75 **Author:** [@joshiausdemwald](https://github.com/joshiausdemwald) **Created:** 6/20/2011 **Status:** ✅ Merged **Merged:** 6/20/2011 **Merged by:** [@guilhermeblanco](https://github.com/guilhermeblanco) **Base:** `master` ← **Head:** `DatabaseDriver_Corrections` --- ### 📝 Commits (1) - [`c05fffc`](https://github.com/doctrine/orm/commit/c05fffcc93ea6488ab8c7cef7391c80c3e3933db) Suppressed php undefined variable notice adding initialization code to Doctrine\ORM\Mapping\Driver\DatabaseDriver.php ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php` (+2 -0) </details> ### 📄 Description Suppressed an "undefined variable" notice by adding initialization code to Doctrine\ORM\Mapping\Driver\DatabaseDriver::reverseEngineerMappingFromDatabase(). This silly edge case only occurs when the database the mapping information should be imported from is empty. Only one line has been inserted ($tables = array()) before the loop statement. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 15:56:18 +01:00
admin closed this issue 2026-01-22 15:56:19 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7677