src/Flipbox/OrmManager/Relations/HasManyThrough.php
protected function beforeApplyOptions($stub)
	{
		$refModel = new ReflectionClass($this->model);
		$refIntermeidateModel = new ReflectionClass($this->defaultOptions['intermediate_model']);
		
		$model = $refIntermeidateModel->getShortName();
		
		if ($refModel->getNamespaceName() !== $refIntermeidateModel->getNamespaceName()) {
			$model = '\\'.$refIntermeidateModel->getName();
		}

		return str_replace('DummyIntermediateModel', $model, $stub);
	}
protected function beforeApplyOptions($stub)
	{
		$refModel = new ReflectionClass($this->model);
		$refIntermeidateModel = new ReflectionClass($this->defaultOptions['intermediate_model']);
		
		$model = $refIntermeidateModel->getShortName();
		
		if ($refModel->getNamespaceName() !== $refIntermeidateModel->getNamespaceName()) {
			$model = '\\'.$refIntermeidateModel->getName();
		}

		return str_replace('DummyIntermediateModel', $model, $stub);
	}
protected function beforeApplyOptions ( $ stub ) { $ refModel = new ReflectionClass ( $ this -> model ) ; $ refIntermeidateModel = new ReflectionClass ( $ this -> defaultOptions [ 'intermediate_model' ] ) ; $ model = $ refIntermeidateModel -> getShortName ( ) ; if ( $ refModel -> getNamespaceName ( ) !== $ refIntermeidateModel -> getNamespaceName ( ) ) { $ model = '\\' . $ refIntermeidateModel -> getName ( ) ; } return str_replace ( 'DummyIntermediateModel' , $ model , $ stub ) ; }
replace more before apply options code

@param string $stub
@return string
replace more before apply options code