/** * @param $attribute * @return string */ public function getField($attribute) { $table = $this->config->getTable($this->entityName); $field = $this->config->getFiled($this->entityName, $attribute); return $table . "." . $field; }
public function testGetFieldNotExistsException() { $this->setExpectedException(ConfigException::class); $this->config->getFiled('Task', 'amount'); }