/** * @param int $id * @return static */ public static function findById($id) { $row = DbClient::findRowById(static::getTableName(), $id); if ($row === null) { return; } return static::fromArray($row); }
/** * @param int $id * @return static */ public static function findById($id) { $row = DbClient::findRowById(static::getTableName(), $id); if ($row === null) { return; } return static::fromArray($row); }