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;
	}
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;
	}
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 ; }
Check loop protection
@param Entity $entity
@return bool
Check loop protection