When foreign key integer value is already known ... Is it a good practice 
to have both methods for:

   - setting foreign ID directly by using its integer value 
   - setting foreign ID by using the associated Entity

$item = new Item();

//setting foreign key by its integer value


//setting foreign key via its Doctrine Entity:

$productEntity = $em->find(Product::class, 4);



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 doctrine-user+unsubscr...@googlegroups.com.
To post to this group, send email to doctrine-user@googlegroups.com.
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to