Skip to content

Commit

Permalink
GroupedSelection: changed order of constructor parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
fabik committed Aug 26, 2012
1 parent 8e96df4 commit 39a4090
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Database/GroupedSelection.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ class GroupedSelection extends \Nette\Database\Table\GroupedSelection implements


/**
* @param string
* @param Nette\Database\Table\Selection
* @param string
* @param string
*/
public function __construct($name, \Nette\Database\Table\Selection $refTable, $column)
public function __construct(\Nette\Database\Table\Selection $refTable, $name, $column)
{
parent::__construct($name, $refTable, $column);
parent::__construct($refTable, $name, $column);
if (!$refTable instanceof IModelManagerAccessor) {
throw new \Nette\InvalidArgumentException('Argument $refTable must be a IModelManagerAccessor descendant.');
}
Expand Down Expand Up @@ -76,7 +76,7 @@ protected function createSelection($table)
*/
protected function createGroupedSelection($table, $column)
{
return new GroupedSelection($table, $this, $column);
return new GroupedSelection($this, $table, $column);
}


Expand Down
2 changes: 1 addition & 1 deletion Database/Selection.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function createSelection($table)
*/
protected function createGroupedSelection($table, $column)
{
return new GroupedSelection($table, $this, $column);
return new GroupedSelection($this, $table, $column);
}


Expand Down

0 comments on commit 39a4090

Please sign in to comment.