//ads: ?> Why the name of trucks are same in 2nd and 3rd record of company data retrieval?phpdatabasemongodbsymfonyphp-5.6 PHP Snippet 1:$ta = array(); foreach ($Trucks as $truckname) { $object = new Truck(); $object = $truckname->getName(); $ta[] = $object; }