src/Actions/Processors/CatalogAttributeCreateProcessor.php
public function execute($row, $name = null)
    {

        // load the field names
        $keys = array_keys($row);

        // create a unique name for the prepared statement
        $name = sprintf('%s-%s', $name, md5(implode('-', $keys)));

        // query whether or not the statement has been prepared
        if (!$this->hasPreparedStatement($name)) {
            // remove the entity status from the keys
            unset($keys[array_search(EntityStatus::MEMBER_NAME, $keys)]);

            // create the prepared UPDATE statement
            $statement = sprintf($this->loadStatement(SqlStatementKeys::CREATE_CATALOG_ATTRIBUTE), implode(',', $keys), implode(',:', $keys));

            // prepare the statement
            $this->addPreparedStatement($name, $this->getConnection()->prepare($statement));
        }

        // pass the call to the parent method
        return parent::execute($row, $name);
    }
public function execute($row, $name = null)
    {

        // load the field names
        $keys = array_keys($row);

        // create a unique name for the prepared statement
        $name = sprintf('%s-%s', $name, md5(implode('-', $keys)));

        // query whether or not the statement has been prepared
        if (!$this->hasPreparedStatement($name)) {
            // remove the entity status from the keys
            unset($keys[array_search(EntityStatus::MEMBER_NAME, $keys)]);

            // create the prepared UPDATE statement
            $statement = sprintf($this->loadStatement(SqlStatementKeys::CREATE_CATALOG_ATTRIBUTE), implode(',', $keys), implode(',:', $keys));

            // prepare the statement
            $this->addPreparedStatement($name, $this->getConnection()->prepare($statement));
        }

        // pass the call to the parent method
        return parent::execute($row, $name);
    }
Implements the CRUD functionality the processor is responsible for,
can be one of CREATE, READ, UPDATE or DELETE a entity.

@param array       $row  The data to handle
@param string|null $name The name of the prepared statement to execute

@return void