app-zap / PHPFramework

A lightweight PHP framework as a composition of different good features and concepts of other frameworks intended for easy use and fast development
Other
4 stars 1 forks source link

DatabaseConnection: allow to test against NULL #50

Closed smichaelsen closed 9 years ago

smichaelsen commented 9 years ago

Expected feature:

  /**
   * @return AbstractModelCollection
   */
  public function findNotArchived() {
    return $this->queryMany([
      'archive_time' => NULL,
    ]);
  }

  /**
   * @return AbstractModelCollection
   */
  public function findArchived() {
    return $this->queryMany([
      'archive_time!' => NULL,
    ]);
  }