First, to be precise: when you have a custom Something repository, then the 
findBy( ) of that repository is used as your findBy( ) call. With your 
sentence "No function of this repository file is called on this script at 
all" you probably mean, that no custom or overriden method of that 
repository was used. But I don't think that is causing the notice.

Because it is the same kind of mistake you had in 
https://groups.google.com/forum/#!topic/doctrine-user/bNmpuToD-JA I think 
it is very probable that the cause is the same as there. And to answer that 
question in the other thread: you are using OneToOne and 
OneToMany-ManyToOne relations where you should use* inheritance mapping*. 
In your case: Class Table inheritance 
http://docs.doctrine-project.org/en/latest/reference/inheritance-mapping.html#class-table-inheritance

So: read everything about inheritance mapping, especially Class Table 
Inheritance as you also have a table for the superclass. A.o. Fowler's PEAA 
http://martinfowler.com/eaaCatalog/classTableInheritance.html. Then get 
your classes good, then your mapping and your Notices will disappear as 
snow for the sun. ;-)

On Monday, 10 March 2014 20:04:25 UTC+1, Parsifal wrote:
>
>  
> Herman,
> the foreach you told me is working now and it is updating the values but 
> the line below before foreach to load the entities:
> $somethings = 
> $em->getRepository('Entities\Something')->findBy(array('productId' => 
> $_POST['productId']));
>
> causes this notice below. I did set proxies to AutoGenerate and probably I 
> have to say that I have another actual Something repository file that is 
> separate from Entity class file, extending EntityRepository. No function of 
> this repository file is called on this script at all. Please advice how to 
> avoid this notice? I appreciate it.
> NOTICE: Undefined index: id in 
> /vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php 
> on line 121
>  
>  
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to