[DBAL-626] [GH-386] Fix Index construction Created: 09/Oct/13  Updated: 17/Oct/13  Resolved: 17/Oct/13

Status: Resolved
Project: Doctrine DBAL
Component/s: None
Affects Version/s: None
Fix Version/s: 2.5
Security Level: All

Type: Bug Priority: Major
Reporter: Doctrine Bot Assignee: Guilherme Blanco
Resolution: Fixed Votes: 0
Labels: None


 Description   

This issue is created automatically through a Github pull request on behalf of deeky666:

Url: https://github.com/doctrine/dbal/pull/386

Message:

This PR fixes an uncommon but possible use case where an `Index` is constructed with an empty columns array. Following calls to `Index::getColumns()` lead to a PHP warning `array_keys() expects parameter 1 to be array, null given` as the `$_columns` property is not properly initialized.



 Comments   
Comment by Doctrine Bot [ 09/Oct/13 ]

A related Github Pull-Request [GH-386] was closed:
https://github.com/doctrine/dbal/pull/386

Comment by Marco Pivetta [ 17/Oct/13 ]

Merged: https://github.com/doctrine/dbal/commit/a619261b6b96341951f93d228493818ba334d0f6

Generated at Mon Jul 28 06:23:34 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.