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