コード例 #1
0
ファイル: Criteria.php プロジェクト: t4web/infrastructure
 /**
  * @param $attribute
  * @return string
  */
 public function getField($attribute)
 {
     $table = $this->config->getTable($this->entityName);
     $field = $this->config->getFiled($this->entityName, $attribute);
     return $table . "." . $field;
 }
コード例 #2
0
ファイル: ConfigTest.php プロジェクト: t4web/infrastructure
 public function testGetFieldNotExistsException()
 {
     $this->setExpectedException(ConfigException::class);
     $this->config->getFiled('Task', 'amount');
 }