<commit_before><?php

namespace Arctic\Model\Reservation;

use Arctic\Model;

/**
 * @class Reservation
 * @property int $activityid
 * @property int $tripid
 * @property array $allocations
 * @property array $components
 * @property int $groupguests
 * @property string|null $registrationupdatedon
 * @property bool $registrationcomplete
 * @property bool $deleted
 * @property \Arctic\Model\Activity\Activity $activity
 * @property \Arctic\Model\Trip\Trip $trip
 * @property ReservationMember[] $members
 */
class Reservation extends Model
{
	public static function getApiPath() {
		return 'reservation';
	}

	public function __construct() {
		parent::__construct();

		$this->_addSingleReference('activity', '\Arctic\Model\Activity\Activity', array('activityid' => 'id'));
		$this->_addSingleReference('trip', '\Arctic\Model\Trip\Trip', array('tripid' => 'id'));
		$this->_addMultipleReference('members', __NAMESPACE__ . '\ReservationMember', 'member');
	}
}<commit_msg>Seed blank activity for new reservation<commit_after><?php

namespace Arctic\Model\Reservation;

use Arctic\Model;

/**
 * @class Reservation
 * @property int $activityid
 * @property int $tripid
 * @property array $allocations
 * @property array $components
 * @property int $groupguests
 * @property string|null $registrationupdatedon
 * @property bool $registrationcomplete
 * @property bool $deleted
 * @property \Arctic\Model\Activity\Activity $activity
 * @property \Arctic\Model\Trip\Trip $trip
 * @property ReservationMember[] $members
 */
class Reservation extends Model
{
	public static function getApiPath() {
		return 'reservation';
	}

	public function __construct() {
		parent::__construct();

		$this->_addSingleReference('activity', '\Arctic\Model\Activity\Activity', array('activityid' => 'id'), true);
		$this->_addSingleReference('trip', '\Arctic\Model\Trip\Trip', array('tripid' => 'id'));
		$this->_addMultipleReference('members', __NAMESPACE__ . '\ReservationMember', 'member');

		// initialize activity
		$this->_initiateBlankReference('activity');
	}
}
{'fraction_non_alphanumeric': 0.1448780487804878, 'fraction_numerical': 0.0, 'mean_word_length': 5.594855305466238, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7577851', 'n_tokens_mistral': 619, 'n_tokens_neox': 589, 'n_words': 141}