public function testStaticBuilderCall() { $this->assertEquals('ORDER BY updated_at DESC', (string) Sql::orderBy('updated_at')->desc()); }
/** * @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; }