Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fix for Zend\Db\TableGateway: Alias for table #6726 #6740

Closed

Conversation

Pittiplatsch
Copy link

No description provided.

@malukenho
Copy link
Member

I think its need test.

@Pittiplatsch
Copy link
Author

Here they are :)

@@ -31,7 +31,7 @@ class TableGateway extends AbstractTableGateway
public function __construct($table, AdapterInterface $adapter, $features = null, ResultSetInterface $resultSetPrototype = null, Sql $sql = null)
{
// table
if (!(is_string($table) || $table instanceof TableIdentifier)) {
if (!(is_string($table) || $table instanceof TableIdentifier || is_array($table))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this left indentation cs : the indentation already right.

@Ocramius
Copy link
Member

Linking #6726

@Ocramius Ocramius added bug and removed enhancement labels Dec 16, 2014
@Ocramius Ocramius closed this in f60b322 Dec 16, 2014
Ocramius added a commit that referenced this pull request Dec 16, 2014
@Ocramius
Copy link
Member

Merged, thanks @Pittiplatsch!

master: f60b322
develop: b1969e7

@Pittiplatsch Pittiplatsch deleted the gateway_table_alias branch January 15, 2015 13:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants