Xpressengine\DynamicField\AbstractType::delete PHP Method

delete() public method

생성된 Dynamic Field 테이블에 데이터 삭제
public delete ( array $wheres ) : void
$wheres array Illuminate\Database\Query\Builder's wheres attribute wheres attribute
return void
    public function delete(array $wheres)
    {
        $config = $this->config;
        $where = $this->parseWhere($wheres);
        if (isset($where[$config->get('joinColumnName')]) === false) {
            throw new Exceptions\RequiredDynamicFieldException();
        }
        $this->handler->connection()->table($this->handler->getConfigHandler()->getTableName($config))->where('dynamicFieldTargetId', '=', $where['id'])->delete();
    }