src/AbstractRepository.php
public function findByKey($key)
	{
		$query = $this->newQuery()
			->where($this->getKeyName(), '=', $key);

		return $this->fetchSingle($query);
	}
public function findByKey($key)
	{
		$query = $this->newQuery()
			->where($this->getKeyName(), '=', $key);

		return $this->fetchSingle($query);
	}
Get a specific row by key in the repository.

@param  mixed $key

@return mixed