original_string: public function push(Entity $entity) {
  		$entity->setEntityManager($this->entityManager);
  		if ($entity->toRow()) {
  			$this->rows[$entity->getPrimary()] = $entity;
  		} else {
  			$this->rows[] = $entity;
  		}
  	}
code: public function push(Entity $entity) {
  		$entity->setEntityManager($this->entityManager);
  		if ($entity->toRow()) {
  			$this->rows[$entity->getPrimary()] = $entity;
  		} else {
  			$this->rows[] = $entity;
  		}
  	}
code_tokens: public function push ( Entity $ entity ) { $ entity -> setEntityManager ( $ this -> entityManager ) ; if ( $ entity -> toRow ( ) ) { $ this -> rows [ $ entity -> getPrimary ( ) ] = $ entity ; } else { $ this -> rows [ ] = $ entity ; } }
docstring: Push entity to array
  @param Entity $entity
docstring_tokens: Push entity to array