mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #75] [MERGED] Suppressed an "undefined variable" notice by adding initialization code #7677
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
master← Head:DatabaseDriver_Corrections📝 Commits (1)
c05fffcSuppressed 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.