diff --git a/Nested_Models.md b/Nested_Models.md index 9fbe4fb..6b9667d 100644 --- a/Nested_Models.md +++ b/Nested_Models.md @@ -145,7 +145,7 @@ $new_person = new Person( if($row_object->location_id){ //test if location_id is truthy $new_location = new Location( //create a location from the row data - intval($row_object->location_id), + intval($row_object->location_id), //turn the string into an int $row_object->street, $row_object->city, $row_object->state