@@ -43,10 +43,10 @@ class Selection implements \Iterator, IRowContainer, \ArrayAccess, \Countable
4343 /** @var string|bool primary column sequence name, false for autodetection */
4444 protected $ primarySequence = false ;
4545
46- /** @var IRow [] data read from database in [primary key => IRow ] format */
46+ /** @var ActiveRow [] data read from database in [primary key => ActiveRow ] format */
4747 protected $ rows ;
4848
49- /** @var IRow [] modifiable data in [primary key => IRow ] format */
49+ /** @var ActiveRow [] modifiable data in [primary key => ActiveRow ] format */
5050 protected $ data ;
5151
5252 /** @var bool */
@@ -64,7 +64,7 @@ class Selection implements \Iterator, IRowContainer, \ArrayAccess, \Countable
6464 /** @var string|null */
6565 protected $ specificCacheKey ;
6666
67- /** @var array of [conditions => [key => IRow ]]; used by GroupedSelection */
67+ /** @var array of [conditions => [key => ActiveRow ]]; used by GroupedSelection */
6868 protected $ aggregation = [];
6969
7070 /** @var array|false|null of touched columns */
@@ -201,9 +201,8 @@ public function get($key): ?ActiveRow
201201
202202 /**
203203 * Fetches single row object.
204- * @return ActiveRow|null if there is no such row
205204 */
206- public function fetch (): ?Nette \ Database \ IRow
205+ public function fetch (): ?ActiveRow
207206 {
208207 $ this ->execute ();
209208 $ return = current ($ this ->data );
@@ -791,7 +790,7 @@ public function getDataRefreshed(): bool
791790 /**
792791 * Inserts row in a table.
793792 * @param array|\Traversable|Selection $data [$column => $value]|\Traversable|Selection for INSERT ... SELECT
794- * @return ActiveRow|int|bool Returns IRow or number of affected rows for Selection or table without primary key
793+ * @return ActiveRow|int|bool Returns ActiveRow or number of affected rows for Selection or table without primary key
795794 */
796795 public function insert (iterable $ data )
797796 {
@@ -1029,7 +1028,7 @@ public function valid(): bool
10291028 /**
10301029 * Mimic row.
10311030 * @param string $key
1032- * @param IRow $value
1031+ * @param ActiveRow $value
10331032 */
10341033 public function offsetSet ($ key , $ value ): void
10351034 {
0 commit comments