src/orm/classes/Field/Bindings.php
public function orm2pdo($ormValue)
    {
        if (!(is_array($ormValue) || $ormValue instanceof ArrayAccess))
        {
            throw new InvalidArgumentException(
                sprintf('Argument 1 passed to %s should be array (or ArrayAccess) but %s given',
                    __METHOD__, gettype($ormValue)));
        }

        $manager = $this->table->getDriver()->getManager();
        $table = $manager->getTableByEntityClass($this->getParam('class'));
        if (is_null($table))
        {
            return array();
        }

        foreach ($ormValue as &$element)
        {
            if (!($element instanceof ORM_Entity))
            {
                $element = $table->find($element);
            }
        }
        return $ormValue;
    }
public function orm2pdo($ormValue)
    {
        if (!(is_array($ormValue) || $ormValue instanceof ArrayAccess))
        {
            throw new InvalidArgumentException(
                sprintf('Argument 1 passed to %s should be array (or ArrayAccess) but %s given',
                    __METHOD__, gettype($ormValue)));
        }

        $manager = $this->table->getDriver()->getManager();
        $table = $manager->getTableByEntityClass($this->getParam('class'));
        if (is_null($table))
        {
            return array();
        }

        foreach ($ormValue as &$element)
        {
            if (!($element instanceof ORM_Entity))
            {
                $element = $table->find($element);
            }
        }
        return $ormValue;
    }
Преобразует значение ORM в значение PDO

@param mixed $ormValue

@throws InvalidArgumentException

@return mixed

@since 3.00