Skip to content

Commit

Permalink
Revert "Database\Table\Selection: removed find()"
Browse files Browse the repository at this point in the history
This partially reverts commit dcbf2b0.
  • Loading branch information
dg committed Jun 21, 2011
1 parent a92df5f commit f2ae1ce
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Nette/Database/Table/Selection.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,18 @@ public function select($columns)



/**
* Selects by primary key.
* @param mixed
* @return Selection provides a fluent interface
*/
public function find($key)
{
return $this->where($this->delimitedPrimary, $key);
}



/**
* Adds where condition, more calls appends with AND.
* @param string condition possibly containing ?
Expand Down

0 comments on commit f2ae1ce

Please sign in to comment.