Пример #1
0
	/**
	 * Set the entry field to use the Article model
	 */
	public function _init() {
		parent::_init();
		$this->_fields += array(
			'entry' => new Sprig_Field_BelongsTo(array(
				'model' => 'Article',
			)),
		);
	}