Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example code doesn't work #25

Open
svencornelis opened this issue Jul 19, 2014 · 2 comments
Open

Example code doesn't work #25

svencornelis opened this issue Jul 19, 2014 · 2 comments

Comments

@svencornelis
Copy link

$person = new HighrisePerson($highrise);
$person->setFirstName("John");
$person->setLastName("Doe");
$person->addEmailAddress("[email protected]");

$address = new HighriseAddress();
$address->setStreet("165 Test St.");
$address->setCity("Glasgow");
$address->setCountry("Scotland");
$address->setZip("GL1");
$person->addAddress($address);

$person->save();

This code doesn't work for me? (If I leave the HighriseAddress out it works)

@harpreetsb
Copy link

any update on this?

@mdobrzanski
Copy link

I think the example is missing

$address->setLocation('Work');

with that $person saved properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants