public function get($key) {
		if (isset($this->rows[(int) $key])) {
			return $this->rows[(int) $key];
		} else {
			/** @var ActiveRow|false $item */
			$item = $this->buildSql()->get((int) $key);
			if ($item) {
				return $this->createEntity($item);
			} else {
				return NULL;
			}
		}
	}
public function get($key) {
		if (isset($this->rows[(int) $key])) {
			return $this->rows[(int) $key];
		} else {
			/** @var ActiveRow|false $item */
			$item = $this->buildSql()->get((int) $key);
			if ($item) {
				return $this->createEntity($item);
			} else {
				return NULL;
			}
		}
	}
public function get ( $ key ) { if ( isset ( $ this -> rows [ ( int ) $ key ] ) ) { return $ this -> rows [ ( int ) $ key ] ; } else { /** @var ActiveRow|false $item */ $ item = $ this -> buildSql ( ) -> get ( ( int ) $ key ) ; if ( $ item ) { return $ this -> createEntity ( $ item ) ; } else { return NULL ; } } }
Find item by primary key

@param int $key
@return Entity|null
Find item by primary key