Hi folks,

I am jumping into the realm of PHP and MySQL.  I have fared decently
but have encountered this issue which I have yet to find a solution to.

I am passing valueObjects (VOs) in and out of the application.  When
the vo gets passed out from flex it looks something like this:

//in the Cairngorm command
var token:AsyncToken = call.send(UserVO(vo));
token.addResponders(this);

//the php service
include_once("vo/UserVO.php");
class MyService
{
public function someMethod (UserVO $vo)
{
// do stuff;
}
}

The issue I am getting is that even tho the AS3 vo is using the
[RemoteClass] metadata tag and is pointing to the PHP equivalent vo, I
get this error back on the fault response of the Cairngorm command:

Error Code:
AMFPHP_RUNTIME_ERROR

Error Details:
"Argument 1 passed to userServices::getUser() must be an instance of
UserVO, array given"

My question is, even tho I am casting the VO as the type expected on
both sides, what I am doing incorrectly?  Somehow the parameter being
sent is getting interpretted as an array or simple object.  When I
remove the PHP type casting and return the parameter sent, the object
comes back as an ObjectProxy tho the properties are intact.


Thanks in advance for your help,
Jwopitz

Reply via email to