Example #1
0
 /**
  * Release key
  *
  * @param string $key
  * @return boolean
  * @throws \InvalidArgumentException
  */
 public function release($key)
 {
     $key = $this->string()->toUpper($key);
     if (!$this->dictionary->has($key)) {
         return true;
     }
     $entity = $this->dictionary->get($key);
     $this->dictionary->delete($key);
     return $this->adaptor()->release($entity);
 }
Example #2
0
 public function __construct()
 {
     parent::__construct(BaseField::getClass());
 }
Example #3
0
 /**
  * Return columns
  *
  * @return Dictionary
  */
 public function getColumns()
 {
     $dictionary = new Dictionary('BX\\DB\\Column\\IColumn');
     $data = $this->columns();
     $dictionary->setData($data);
     return $dictionary;
 }