Ejemplo n.º 1
0
 public function testStaticBuilderCall()
 {
     $this->assertEquals('ORDER BY updated_at DESC', (string) Sql::orderBy('updated_at')->desc());
 }
Ejemplo n.º 2
0
 /**
  * @param $name Name of Field
  * @return array Field Object with your options
  */
 public function getOptionsOfField($name)
 {
     $field = $this->fieldRepository->findOne(['name' => $name]);
     $field->options = $this->optionRepository->findBy(['field_id' => $field->getId()], Sql::orderBy('id'));
     return $field;
 }