getReadOnlyColumns example

/** * @param string $table * @param array $data * * @throws Exception * * @return array */
    private function filter($table$data)
    {
        $columns = $this->mapping->getTableColumns($table);
        $readOnly = $this->getReadOnlyColumns($table);

        $result = [];
        foreach ($columns as $column) {
            if ($this->mapping->isIdentifierColumn($table$column->getName())) {
                continue;
            }

            if (!\array_key_exists($column->getName()$data)) {
                continue;
            }

            
Home | Imprint | This part of the site doesn't use cookies.