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