Ouzo\Restrictions::isNotNull PHP Method

isNotNull() public static method

public static isNotNull ( )
    public static function isNotNull()
    {
        return new IsNotNullRestriction();
    }

Usage Example

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