Ouzo\Restrictions::isNull PHP Method

isNull() public static method

public static isNull ( )
    public static function isNull()
    {
        return new IsNullRestriction();
    }

Usage Example

Example #1
0
 /**
  * @test
  */
 public function shouldCreateSql()
 {
     //given
     $restriction = Restrictions::isNull();
     //when
     $sql = $restriction->toSql('category_id');
     //then
     $this->assertEquals('category_id IS NULL', $sql);
 }
All Usage Examples Of Ouzo\Restrictions::isNull