public function getValidations($propertyName)
 {
     $list = new \Midori\ListOf();
     foreach ($this->items as $value) {
         if (strtolower($value->propertyName) == strtolower($propertyName)) {
             $list->add($value);
         }
     }
     return $list;
 }
Example #2
0
 public function selectObjects($class, $sql, $params = array())
 {
     $this->log->sql($sql);
     $statement = $this->driver->prepare($sql);
     $statement->execute($params);
     $list = new \Midori\ListOf();
     while ($object = $statement->fetchObject($class)) {
         $object->markFetched();
         $list->add($object);
     }
     return $list;
 }