Skip to content

Commit

Permalink
Remove argument $subattributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
romeOz committed Jun 6, 2015
1 parent 86f3e87 commit b2b1fd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
10 changes: 4 additions & 6 deletions src/ActiveQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,27 +157,25 @@ public function snippetByModel()
*
* @param ConnectionInterface $connection the DB connection used to create the DB command.
* If null, the DB connection returned by {@see \rock\db\ActiveQueryTrait::$modelClass} will be used.
* @param boolean $subattributes
* @return ActiveRecord|array|null a single row of query result. Depending on the setting of {@see \rock\db\ActiveQueryTrait::$asArray},
* the query result may be either an array or an ActiveRecord object. Null will be returned
* if the query results in nothing.
*/
public function one(ConnectionInterface $connection = null, $subattributes = false)
public function one(ConnectionInterface $connection = null)
{
return parent::one($connection, $subattributes);
return parent::one($connection);
}

/**
* Executes query and returns all results as an array.
*
* @param ConnectionInterface $connection the DB connection used to create the DB command.
* @param boolean $subattributes
* If null, the DB connection returned by {@see \rock\db\ActiveQueryTrait::$modelClass} will be used.
* @return array|ActiveRecord[] the query results. If the query results in nothing, an empty array will be returned.
*/
public function all(ConnectionInterface $connection = null, $subattributes = false)
public function all(ConnectionInterface $connection = null)
{
return parent::all($connection, $subattributes);
return parent::all($connection);
}

/**
Expand Down
5 changes: 2 additions & 3 deletions src/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,12 @@ public function createCommand(ConnectionInterface $connection = null)
*
* @param ConnectionInterface $connection the Sphinx connection used to generate the SQL statement.
* If this parameter is not given, the `sphinx` application component will be used.
* @param boolean $subattributes
* @return array|null the first row (in terms of an array) of the query result. False is returned if the query
* results in nothing.
*/
public function one(ConnectionInterface $connection = null, $subattributes = false)
public function one(ConnectionInterface $connection = null)
{
return parent::one($connection, $subattributes);
return parent::one($connection);
}

/**
Expand Down

0 comments on commit b2b1fd4

Please sign in to comment.