🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #230808

Re:doctrine2 - findall i @OneToOne

#230808
From: fela
Date: Sun, 21 Dec 2014 22:17
27 lines
1436 bytes
Replay <replay111@o2.pl> Wrote in message:
> 
> I teraz gdy chce pobrać dane w taki oto sposób (osobny skrypt):
> 
> $repo = $em->getRepository('app\libs\Entity\SysUser');
> try {
>         $q = $repo->findAll();
> }
> 
> var_dump($q);
> 
> Skrypt się zapętla i kończy pracę (chce więcej pamięci niż może)...
> 
> Czy ktoś może mnie naprowadzić co robię w niewłaściwy sposób?
> 
> 

A czy bez var_dumpa też się zapętla, bo doctrine ma swojego dumpa,
 bez rekurencji.

A czy można używać try bez catcha?



-- 

marcin
Technical Details
Message-ID: <54974701$0$2646$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <m76vlq$84q$1@news.icm.edu.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Date: Sun, 21 Dec 2014 23:17:35 +0100 (CET)
From: fela <fel@al.ef>
References: <m76vlq$84q$1@news.icm.edu.pl>
Subject: Re:doctrine2 - findall i @OneToOne
MIME-Version: 1.0
Newsgroups: pl.comp.lang.php
Organization: news.Neostrada.pl
X-Newsreader: PiaoHong.Usenet.Client.Free:1.61
X-Archive: encrypt
Lines: 27
Message-ID: <54974701$0$2646$65785112@news.neostrada.pl>
NNTP-Posting-Host: host-81-190-165-183.gorzow.mm.pl
X-Trace: 1419200257 unt-rea-a-01.news.neostrada.pl 2646 81.190.165.183:37180
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit