arraycollection Questions
10
Solved
Is there any convenience method that allows me to concatenate two Doctrine ArrayCollection()? something like:
$collection1 = new ArrayCollection();
$collection2 = new ArrayCollection();
$collecti...
Humanism asked 10/4, 2012 at 4:37
5
Solved
Can I filter out results from an arrayCollection in Doctrine 2 while using lazy loading? For example,
// users = ArrayCollection with User entities containing an "active" property
$customer->us...
Moulden asked 30/11, 2011 at 23:11
2
Solved
In my model I have a Recipe entity and Ingredient entity. In Recipe entity, the relation is defined like this:
/**
* @ORM\OneToMany(targetEntity="Ingredient", mappedBy="recipe", cascade={"remove"...
Sextuple asked 23/1, 2016 at 19:27
3
Solved
I am trying to use the method ArrayCollection::contains to find if an object is already in my Collection, but when i am doing :
//My ArrayCollection
$lesRoles = $drt->getDrtApplication()->g...
Nottinghamshire asked 25/2, 2016 at 10:49
1
Imagine, I've an array collection $items, and implemented a method removeItem in my SomeEntity entity class,
public function removeItem(Item $item)
{
$this->items->removeElement($item);
re...
Formosa asked 7/2, 2016 at 6:46
2
Using Symfony2.8 with Doctrine 2.5, I want to filter in a Doctrine ORM query all datasets where the arraycollection contains exactly 3 elements.
$em = $this->getDoctrine()->getManager();
$qu...
Sweetbrier asked 9/12, 2015 at 9:2
1
Solved
since I'm quite new to Symfony and Doctrine I got a maybe stupid question ;-)
Can someone use simple words to explain Collections (especially ArrayCollections in entities) to me? What is it and wh...
Frisch asked 21/3, 2015 at 8:18
1
Solved
How can I check that given value exists in Doctrine Collection (ManyToMany relation) field?
For example I try to:
$someClass = $this->
getDoctrine()->
getRepository('MyBundle:MyClass')-&g...
Severance asked 31/1, 2015 at 14:56
1
Solved
I am using tags on a form using tagsinput :
This plugin ends-up with a single text field containing tags separated by a comma (eg: tag1,tag2,...)
Those tags are currently managed on a non-mappe...
Joub asked 28/12, 2014 at 22:51
2
Solved
I have an Entity Order which hold Suppliers in an Arraycollection.
In my controller i want to check if this arraycollection is empty:
$suppliers = $order->getSuppliers();
I tried:
if(!($sup...
Tinatinamou asked 14/7, 2013 at 19:44
2
Solved
I have an entity with a ArrayCollection field. In the annotations I can write
@ORM\OrderBy({"somefield" = "DESC"})
and the collection I get from that entity will be automatically ordered.
My que...
Chauffer asked 6/3, 2012 at 22:0
1
Solved
I use the following code for my many-to-many relation in symfony2 (doctrine)
Entity:
/**
* @ORM\ManyToMany(targetEntity="BizTV\ContainerManagementBundle\Entity\Container", inversedBy="videosToSy...
Pompon asked 24/2, 2014 at 18:12
1
Solved
When does Doctrine2 loads the ArrayCollection?
Until I call a method, like count or getValues, I have no data
Here is my case. I have a Delegation entity with OneToMany (bidirectional) relation to ...
Mayhew asked 11/1, 2013 at 9:59
2
Solved
Unfortunately in Actionscript, it seems like support for the Vector class isn't fully there yet. There are some scenarios where I need to convert a Vector into an array (creating an ArrayCollection...
Hinda asked 9/3, 2011 at 16:54
4
Solved
I want to set arrayCollection #2 = to arrayCollection #1 via a function in flex 3. I pass both array collections to a function and set arrayCollection #2 = arrayCollection #1. However, it seems to ...
Bananas asked 6/5, 2011 at 22:15
4
Solved
When pushing objects from ColdFusion to Flex via BlazeDS, and mapping the classes using RemoteClass...
[RemoteClass(alias="blah.blah")]
...is it possible to have ColdFusion "Arrays" (or some Ja...
Bethel asked 28/7, 2009 at 9:16
1
© 2022 - 2024 — McMap. All rights reserved.