Hi,

I'm getting the error message below on the second ALTER PROPETY .. 
MANDATORY in the code below. 

It doesn't matter which order they are executed, the first one succeeds and 
the second one throws an exception. 

When I examine the Course Class in Studio both properties are mandatory.

If I comment the second ALTER PROPETY .. MANDATORY true then no exception 
is thrown

No errors in the log or the console.

Any ideas?

Thanks,
Will

OrientDB version 1.7.10

"ostico/phporient" : "dev-master" - updated

Windows 7



C:\app\php\latest\php.exe 
C:\home\Willem\proj\php\myegs\php\db\orient\MandatoryBug.php

Fatal error: Uncaught exception 'PhpOrient\Exceptions\PhpOrientException' 
with message 'Unknown payload type  ' in 
C:\home\Willem\proj\php\myegs\php\vendor\ostico\phporient\src\PhpOrient\Protocols\Binary\Abstracts\Operation.php
 
on line 573

PhpOrient\Exceptions\PhpOrientException: Unknown payload type   in 
C:\home\Willem\proj\php\myegs\php\vendor\ostico\phporient\src\PhpOrient\Protocols\Binary\Abstracts\Operation.php
 
on line 573

Call Stack:
    0.0010     120608   1. {main}() 
C:\home\Willem\proj\php\myegs\php\db\orient\MandatoryBug.php:0
    0.4620     405464   2. PhpOrient\PhpOrient->command() 
C:\home\Willem\proj\php\myegs\php\db\orient\MandatoryBug.php:25
    0.4620     405840   3. 
PhpOrient\Protocols\Binary\SocketTransport->execute() 
C:\home\Willem\proj\php\myegs\php\vendor\ostico\phporient\src\PhpOrient\PhpOrient.php:266
    0.4620     406496   4. 
PhpOrient\Protocols\Binary\Abstracts\Operation->getResponse() 
C:\home\Willem\proj\php\myegs\php\vendor\ostico\phporient\src\PhpOrient\Protocols\Binary\SocketTransport.php:154
    0.4640     406512   5. 
PhpOrient\Protocols\Binary\Operations\Command->_read() 
C:\home\Willem\proj\php\myegs\php\vendor\ostico\phporient\src\PhpOrient\Protocols\Binary\Abstracts\Operation.php:214
    0.4640     406512   6. 
PhpOrient\Protocols\Binary\Abstracts\Operation->_read_sync() 
C:\home\Willem\proj\php\myegs\php\vendor\ostico\phporient\src\PhpOrient\Protocols\Binary\Operations\Command.php:191


Process finished with exit code 255

<?php
require "../../vendor/autoload.php";
use PhpOrient\PhpOrient;
$cl = new PhpOrient();
$cl->configure(
    array(
        'username' => 'root',
        'password' => 'root',
        'hostname' => 'localhost',
        'port' => 2424,
    )
);
$cl->connect();

$storageType = PhpOrient::STORAGE_TYPE_PLOCAL;
if ( $cl->dbExists('lms') ){
    $cl->dbDrop('lms', $storageType);
}
$cl->dbCreate('lms', $storageType);
$cl->dbOpen('lms', 'admin', 'admin');
$cl->command('create class Course extends V');
$cl->command('CREATE PROPERTY Course.code String');
$cl->command('CREATE PROPERTY Course.faculty String');
$cl->command('ALTER PROPERTY Course.code MANDATORY true');
$cl->command('ALTER PROPERTY Course.faculty MANDATORY true');

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to