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)
        );
    }
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)
        );
    }
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 ) ) ; }
Find a model by id.
@return Rails\ActiveRecord\Base
@raises ActiveRecord\RecordNotFound
Find a model by id .