src/Axolotl/Model.php
public function sync_original() {
		$this->original = $this->attributes;

		if ( $this->attributes[ self::OBJECT_KEY ] ) {
			$this->original[ self::OBJECT_KEY ] = clone $this->attributes[ self::OBJECT_KEY ];
		}

		foreach ( $this->original[ self::TABLE_KEY ] as $key => $item ) {
			if ( is_object( $item ) ) {
				$this->original[ $key ] = clone $item;
			}
		}

		return $this;
	}
public function sync_original() {
		$this->original = $this->attributes;

		if ( $this->attributes[ self::OBJECT_KEY ] ) {
			$this->original[ self::OBJECT_KEY ] = clone $this->attributes[ self::OBJECT_KEY ];
		}

		foreach ( $this->original[ self::TABLE_KEY ] as $key => $item ) {
			if ( is_object( $item ) ) {
				$this->original[ $key ] = clone $item;
			}
		}

		return $this;
	}
public function sync_original ( ) { $ this -> original = $ this -> attributes ; if ( $ this -> attributes [ self :: OBJECT_KEY ] ) { $ this -> original [ self :: OBJECT_KEY ] = clone $ this -> attributes [ self :: OBJECT_KEY ] ; } foreach ( $ this -> original [ self :: TABLE_KEY ] as $ key => $ item ) { if ( is_object ( $ item ) ) { $ this -> original [ $ key ] = clone $ item ; } } return $ this ; }
Syncs the current attributes to the model's original.

@return $this
Syncs the current attributes to the model s original .