Nette\Database\Table\ActiveRow::__toString PHP Метод

__toString() публичный Метод

public __toString ( )
    public function __toString()
    {
        try {
            return (string) $this->getPrimary();
        } catch (\Throwable $e) {
        } catch (\Exception $e) {
        }
        if (isset($e)) {
            if (func_num_args()) {
                throw $e;
            }
            trigger_error("Exception in " . __METHOD__ . "(): {$e->getMessage()} in {$e->getFile()}:{$e->getLine()}", E_USER_ERROR);
        }
    }