我有一个错误的idiorm,但我不知道是否可以约会?
$insertOrder = ORM::for_table('pedido')->create();
$insertOrder->fechapedido = date('Y/m/d');
$insertOrder->estado = 1;
$insertOrder->empleado_id = $idempleado;
$insertOrder->proveedor_id = $_SESSION['idproveedor'];
$insertOrder->save();
消息:类ORM的对象无法转换为字符串 文件:C:\ wamp \ www \ viver \ vendor \ j4mie \ idiorm \ idiorm.php 行:413
第413行是:
protected static function _execute($query, $parameters = array(), $connection_name = self::DEFAULT_CONNECTION) {
self::_log_query($query, $parameters, $connection_name);
$statement = self::$_db[$connection_name]->prepare($query);
self::$_last_statement = $statement;
return $statement->execute($parameters);
}
我正在使用ORM的idiorm,使用了对象