public function saveAndPropagate()
	{
		if (!$this->save())
		{
			return false;
		}

		// Loop through the relationships and save
		// Both rows and models know how to save, so it doesn't matter
		// which of the two the particular relationship returned
		foreach ($this->getRelationships() as $relationship)
		{
			if (!$relationship->save())
			{
				$this->setErrors($relationship->getErrors());
				return false;
			}
		}

		return true;
	}
public function saveAndPropagate()
	{
		if (!$this->save())
		{
			return false;
		}

		// Loop through the relationships and save
		// Both rows and models know how to save, so it doesn't matter
		// which of the two the particular relationship returned
		foreach ($this->getRelationships() as $relationship)
		{
			if (!$relationship->save())
			{
				$this->setErrors($relationship->getErrors());
				return false;
			}
		}

		return true;
	}
public function saveAndPropagate ( ) { if ( ! $ this -> save ( ) ) { return false ; } // Loop through the relationships and save // Both rows and models know how to save, so it doesn't matter // which of the two the particular relationship returned foreach ( $ this -> getRelationships ( ) as $ relationship ) { if ( ! $ relationship -> save ( ) ) { $ this -> setErrors ( $ relationship -> getErrors ( ) ) ; return false ; } } return true ; }
Saves the current model and any subsequent attached models

@return  bool
@since   2.0.0
Saves the current model and any subsequent attached models