protected function doUnserialize(array $json) { // consult parent for further unserialization parent::doUnserialize($json); $this->unserializeArrayEntities('roles', Bf_Role::getClassName(), $json); $this->unserializeArrayEntities('paymentMethods', Bf_PaymentMethod::getClassName(), $json); $this->unserializeEntity('profile', Bf_Profile::getClassName(), $json); $this->unserializeEntity('metadata', Bf_MetadataJson::getClassName(), $json); }
public function testGetByID() { $account = self::$created['account']; $accountID = $account->id; $profile = $account->profile; $profileID = $profile->id; self::$fetchedProfile = Bf_Profile::getByID($profileID); $expected = $accountID; $actual = $profile->accountID; $this->assertEquals($expected, $actual, "Field on fetched entity matches known value."); }
public static function initStatics() { self::$_resourcePath = new Bf_ResourcePath('profiles', 'profile'); }