static public function find($id)
    {
        $id = (int)$id;
        if ($model = self::where(['id' => $id])->first())
            return $model;
        throw new Rails\ActiveRecord\Exception\RecordNotFoundException(
            sprintf("Couldn't find %s with id = %d.", self::cn(), $id)
        );
    }