original_string: private function checkLoop(Entity $entity) {
  		foreach($this->protectLoop as $loop) {
  			if (EntityReflexion::getTable($loop) == EntityReflexion::getTable($entity) && $entity->getPrimary() == $loop->getPrimary()) {
  				return true;
  			}
  		}
  		return false;
  	}
code: private function checkLoop(Entity $entity) {
  		foreach($this->protectLoop as $loop) {
  			if (EntityReflexion::getTable($loop) == EntityReflexion::getTable($entity) && $entity->getPrimary() == $loop->getPrimary()) {
  				return true;
  			}
  		}
  		return false;
  	}
code_tokens: private function checkLoop ( Entity $ entity ) { foreach ( $ this -> protectLoop as $ loop ) { if ( EntityReflexion :: getTable ( $ loop ) == EntityReflexion :: getTable ( $ entity ) && $ entity -> getPrimary ( ) == $ loop -> getPrimary ( ) ) { return true ; } } return false ; }
docstring: Check loop protection
  @param Entity $entity
  @return bool
docstring_tokens: Check loop protection