Does the UserVO constructor require arguments? If it does can you set defaults?
--- In [email protected], "creativepragmatic" <[EMAIL PROTECTED]> wrote: > > Hello, > > I am trying to convert an existing Flex/AMFPHP app to Cairngorm but am > having trouble returning value objects from PHP. > > public function login($userVO) > { > $user = new UserVO(); > > // yada yada yada, user authenticated, logged and full details > received > > $user->id = pg_fetch_result($result, 0, "id"); > $user->email = pg_fetch_result($result, 0, "email"); > $user->username = pg_fetch_result($result, 0, "name"); > $user->lastIP = pg_fetch_result($result, 0, "last_ip"); > $user->password = pg_fetch_result($result, 0, "passhash"); > $user->level = pg_fetch_result($result, 0, "level"); > > return $user; > } > > Here is the error I get from Flash Player: > > ArgumentError: Error #1063: Argument count mismatch on ... > vo::UserVO(). Expected 2, got 0. > > > Here is what I get from the fault handler: > > Didn't receive an acknowledged message. > > Was expecting mx.messaging.messages.AcknowledgeMessage, but > received null. > > > Hopefully, what I am doing will be painfully obvious to someone. > > Thank you in advance for any help, > > Orville >

