original_string: protected function _shimRelations() {
  		if (!empty($this->belongsTo)) {
  			foreach ($this->belongsTo as $k => $v) {
  				if (is_int($k)) {
  					$k = $v;
  					$v = [];
  				}
  				$v = $this->_parseRelation($v);
  				$this->belongsTo(Inflector::pluralize($k), $v);
  			}
  		}
  		if (!empty($this->hasOne)) {
  			foreach ($this->hasOne as $k => $v) {
  				if (is_int($k)) {
  					$k = $v;
  					$v = [];
  				}
  				$v = $this->_parseRelation($v);
  				$this->hasOne(Inflector::pluralize($k), $v);
  			}
  		}
  		if (!empty($this->hasMany)) {
  			foreach ($this->hasMany as $k => $v) {
  				if (is_int($k)) {
  					$k = $v;
  					$v = [];
  				}
  				$v = $this->_parseRelation($v);
  				$this->hasMany(Inflector::pluralize($k), $v);
  			}
  		}
  		if (!empty($this->hasAndBelongsToMany)) {
  			foreach ($this->hasAndBelongsToMany as $k => $v) {
  				if (is_int($k)) {
  					$k = $v;
  					$v = [];
  				}
  				$v = $this->_parseRelation($v);
  				$this->belongsToMany(Inflector::pluralize($k), $v);
  			}
  		}
  	}
code: protected function _shimRelations() {
  		if (!empty($this->belongsTo)) {
  			foreach ($this->belongsTo as $k => $v) {
  				if (is_int($k)) {
  					$k = $v;
  					$v = [];
  				}
  				$v = $this->_parseRelation($v);
  				$this->belongsTo(Inflector::pluralize($k), $v);
  			}
  		}
  		if (!empty($this->hasOne)) {
  			foreach ($this->hasOne as $k => $v) {
  				if (is_int($k)) {
  					$k = $v;
  					$v = [];
  				}
  				$v = $this->_parseRelation($v);
  				$this->hasOne(Inflector::pluralize($k), $v);
  			}
  		}
  		if (!empty($this->hasMany)) {
  			foreach ($this->hasMany as $k => $v) {
  				if (is_int($k)) {
  					$k = $v;
  					$v = [];
  				}
  				$v = $this->_parseRelation($v);
  				$this->hasMany(Inflector::pluralize($k), $v);
  			}
  		}
  		if (!empty($this->hasAndBelongsToMany)) {
  			foreach ($this->hasAndBelongsToMany as $k => $v) {
  				if (is_int($k)) {
  					$k = $v;
  					$v = [];
  				}
  				$v = $this->_parseRelation($v);
  				$this->belongsToMany(Inflector::pluralize($k), $v);
  			}
  		}
  	}
code_tokens: protected function _shimRelations ( ) { if ( ! empty ( $ this -> belongsTo ) ) { foreach ( $ this -> belongsTo as $ k => $ v ) { if ( is_int ( $ k ) ) { $ k = $ v ; $ v = [ ] ; } $ v = $ this -> _parseRelation ( $ v ) ; $ this -> belongsTo ( Inflector :: pluralize ( $ k ) , $ v ) ; } } if ( ! empty ( $ this -> hasOne ) ) { foreach ( $ this -> hasOne as $ k => $ v ) { if ( is_int ( $ k ) ) { $ k = $ v ; $ v = [ ] ; } $ v = $ this -> _parseRelation ( $ v ) ; $ this -> hasOne ( Inflector :: pluralize ( $ k ) , $ v ) ; } } if ( ! empty ( $ this -> hasMany ) ) { foreach ( $ this -> hasMany as $ k => $ v ) { if ( is_int ( $ k ) ) { $ k = $ v ; $ v = [ ] ; } $ v = $ this -> _parseRelation ( $ v ) ; $ this -> hasMany ( Inflector :: pluralize ( $ k ) , $ v ) ; } } if ( ! empty ( $ this -> hasAndBelongsToMany ) ) { foreach ( $ this -> hasAndBelongsToMany as $ k => $ v ) { if ( is_int ( $ k ) ) { $ k = $ v ; $ v = [ ] ; } $ v = $ this -> _parseRelation ( $ v ) ; $ this -> belongsToMany ( Inflector :: pluralize ( $ k ) , $ v ) ; } } }
docstring: Shim the 2.x way of class properties for relations.
  
  @return void
docstring_tokens: Shim the 2 . x way of class properties for relations .