public function loadPersona(ObjectManager $manager) { $persona = array(array(1, '10543941', 'V', 'PEDRO', 'LOPEZ', '1962-04-11', '04160179775', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(2, '11065813', 'V', 'ALEJANDRO', 'SULBARAN', '1973-05-24', '04263655528', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(3, '11564980', 'V', 'MARIA', 'MONTIEL', '1968-02-10', '04269644644', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(4, '11608488', 'V', 'MONICA', 'MONTIEL', '1973-08-06', '04260164765', '*****@*****.**', '2016-05-09 03:24:01', '2016-05-09 03:24:01', null), array(5, '12212841', 'V', 'DIOCENIN', 'ZULETA MILIAN', '1972-09-04', '04167894531', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(6, '12657985', 'V', 'KARINA', 'FERNANDEZ', '1974-09-13', '04261639388', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(7, '13932490', 'V', 'LESBIA', 'ZULETA', '1977-01-22', '04160675916', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(8, '14050875', 'V', 'SAMUEL', 'PAZ', '1980-02-18', '04240184556', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(9, '14370054', 'V', 'LAUDITH', 'ZULETA', '1977-03-08', '04165652742', '*****@*****.**', '2016-05-05 19:25:56', '2016-05-05 19:25:56', 'SOC.'), array(10, '14630144', 'V', 'YOENNY', 'FERNANDEZ', '1981-05-14', '04269298801', 'yoennyfernandez14@gmailcom', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(11, '14675897', 'V', 'DAMELYS', 'ZULETA BARRETO', '1981-01-15', '04261640990', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(12, '14697066', 'V', 'YAMILE', 'AMAYA', '2016-04-20', '04125454354', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(13, '14823351', 'V', 'EMILIA', 'POLANCO', '1982-06-03', '04168635317', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(14, '15410809', 'V', 'MARBELYS', 'LARREAL', '1981-02-02', '0424 764893', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(15, '15560189', 'V', 'EUCLIDES', 'MONTIEL', '1991-03-12', '04261620459', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(16, '15614594', 'V', 'RUTH', 'IGUARAN', '1980-11-12', '04241065467', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(17, '15749005', 'V', 'JUAN CARLOS', 'FERRER SANCHEZ', '1983-08-15', '04444', null, '2016-07-26 01:44:28', '2016-07-26 01:44:28', null), array(18, '15839770', 'V', 'JUAN', 'CARROZ', '1982-05-10', '04148508559', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(19, '16767818', 'V', 'IGNACIO', 'CARDOZO', '2016-04-20', '04142999863', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(20, '16785364', 'V', 'FILIBERTO', 'CASTRO', '1978-08-23', '02628083991', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(21, '17177047', 'V', 'ANGEL', 'MONTIEL', '1988-06-04', '04264912524', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(22, '17231413', 'V', 'YENNY', 'GONZALEZ', '1985-09-25', '04147691111', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(23, '17654050', 'V', 'JESUS', 'MORALES', '1985-12-24', '04125479054', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(24, '17916906', 'V', 'YOHANDRY', 'BLANCO', null, '04262695889', '*****@*****.**', '2016-05-09 16:32:05', '2016-05-09 16:32:05', null), array(25, '18523182', 'V', 'TEREZA', 'GONZALEZ', null, '04165656978', '*****@*****.**', '2016-05-09 16:29:47', '2016-05-09 16:29:47', null), array(26, '18641952', 'V', 'YUSMAYRA', 'REVEROL', '1985-09-22', '04143890169', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(27, '18662914', 'V', 'NISMAY', 'NAVA', '1987-01-09', '04162631849', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(28, '18875050', 'V', 'ENNY', 'GONZALEZ', '1988-09-26', '04164644965', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(29, '18875883', 'V', 'NEREYDA', 'ZULETA MILIAN', '1990-04-12', '0426-223472', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(30, '19328162', 'V', 'ALEJANDRO', 'GUERRERO', '1989-08-23', '04164696242', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(31, '19988978', 'V', 'IDAILIS', 'QUINTERO', '1991-05-14', '04246050928', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(32, '20069709', 'V', 'NADIA', 'LOPEZ', '1992-03-05', '04129068125', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(33, '20072093', 'V', 'THAIS', 'MORALES', '1990-08-20', '04146091992', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(34, '20206332', 'V', 'KAREN', 'BAEZ', null, '04246022457', '*****@*****.**', '2016-05-09 16:48:33', '2016-05-09 16:48:33', null), array(35, '20381839', 'V', 'DIOVER', 'ROMERO', '1990-07-17', '04266004691', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(36, '20581937', 'V', 'MAYRYS', 'BLANCO', '1990-12-01', '04160871931', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(37, '20658050', 'V', 'VICELIS', 'LARREAL', '2016-04-21', '04122999864', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(38, '20658064', 'V', 'JOELYS', 'BELTRAN', '1987-09-09', '04261467241', '*****@*****.**', '2016-05-09 06:48:38', '2016-05-09 06:48:38', null), array(39, '20660016', 'V', 'MARIA', 'GONZALEZ', '1992-02-14', '04261613391', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(40, '20660142', 'V', 'NORACXIS', 'MAPPARI', '2016-04-21', '04142659025', 'noracxi20@gmailcom', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(41, '20660753', 'V', 'DINORA', 'MAPPARI', '2016-04-21', '02626548760', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(42, '20687586', 'V', 'NAIKARIS', 'PEREZ', '1992-12-16', 'O4263638087', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(43, '20777775', 'V', 'JOSE', 'JARABA', '1990-10-26', '04164081276', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(44, '20842247', 'V', 'GENESIS', 'GONZALEZ', '1989-04-28', '04160168754', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(45, '20843115', 'V', 'REINA', 'MORENO', '1991-06-13', '04146743595', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(46, '21037370', 'V', 'NERVY', 'PAZ', '1990-02-02', '04162631849', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(47, '21076090', 'V', 'ARGENIS', 'LARREAL', '1991-10-17', '04128746253', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(48, '21510884', 'V', 'KENDERWIN', 'CAMACHO', '1990-04-23', '0416236590', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(49, '21510903', 'V', 'ALEJANDRA', 'GUERRERO', '1993-06-12', '04243265080', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(50, '21510904', 'V', 'ADEYMER', 'GONZALEZ', '1998-03-08', '04146751298', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(51, '23272913', 'V', 'LEOMAR', 'MORALES', null, '04167624621', '*****@*****.**', '2016-05-09 17:09:04', '2016-05-09 17:09:04', null), array(52, '23286903', 'V', 'AMALIA', 'PAZ', '1998-08-11', '04164695848', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(53, '23408111', 'V', 'ENMANUEL', 'LUZARDO', '1998-08-17', '04246050428', '*****@*****.**', '2016-05-09 06:52:41', '2016-05-09 06:52:41', null), array(54, '23471632', 'V', 'VICKELIS', 'LARREAL', '1996-07-22', '04261003315', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(55, '23471661', 'V', 'GENESIS', 'LARREAL', '1998-08-23', '04125672314', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(56, '23888171', 'V', 'OMAR', 'OSORIO', '1996-06-14', '04261276901', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(57, '24250674', 'V', 'ELIZABETH', 'MACHADO', '1998-02-18', '04262255695', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(58, '24509159', 'V', 'ROINY', 'CHOURIO', '1997-06-18', '04261672615', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(59, '24961293', 'V', 'WINIFER', 'MANAREZ', '1995-06-26', '04240675418', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(60, '25197443', 'V', 'DANIELIS', 'SILVA', '1998-07-13', '04264696898', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(61, '25202192', 'V', 'YUBIMAR', 'REVEROL', '1996-10-02', '04164698252', '*****@*****.**', '2016-05-09 05:53:31', '2016-05-09 05:53:31', null), array(62, '25202635', 'V', 'MARIA', 'PALMAR', '1993-05-12', '04121107110', '*****@*****.**', '2016-05-09 05:56:59', '2016-05-09 05:56:59', null), array(63, '25202636', 'V', 'LEONELA', 'QUINTERO', '1997-04-18', '04163287491', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(64, '25202642', 'V', 'ADALUZ', 'BLANCO', '1992-07-17', '02621658740', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(65, '25251152', 'V', 'CARLEIDY', 'PEREZ', '1999-06-22', '04163905673', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(66, '25251356', 'V', 'FREYNER', 'MAPPARI', '1997-07-09', '04128795360', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(67, '25251357', 'V', 'NEGREY', 'MAPPARI', '1998-05-13', '02628790518', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(68, '25290533', 'V', 'BETANIA', 'GONZALEZ', '1990-07-16', '04126452375', '*****@*****.**', '2016-05-09 03:26:26', '2016-05-09 03:26:26', null), array(69, '25290814', 'V', 'ANDREA', 'CARVAJAL', '1992-03-23', '04246547890', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(70, '25290968', 'V', 'DIONIBERTO', 'CASTILLO', '1993-02-02', '04167231234', '*****@*****.**', '2016-05-09 06:28:46', '2016-05-09 06:28:46', null), array(71, '25290998', 'V', 'ANDIS', 'JURADO', '2016-04-19', '04122999866', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(72, '25367568', 'V', 'EDUARDO', 'LARREAL', '1998-05-11', '04128790164', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(73, '25471741', 'V', 'JOSE', 'GONZALEZ', '1997-09-29', '04148764920', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(74, '25633515', 'V', 'GENESIS', 'VARGAS', '1998-03-19', '04167691111', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(75, '25952220', 'V', 'VISLEINY', 'LARREAL', '1990-04-20', '04122990861', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(76, '25952221', 'V', 'VISLEIDY', 'LARREAL', '1990-04-20', '04122999863', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(77, '25952866', 'V', 'EDWIMALIZ', 'ESPINA', '1998-06-15', '04146743595', '*****@*****.**', '2016-05-09 06:26:12', '2016-05-09 06:26:12', null), array(78, '25972558', 'V', 'SERGGIBEL', 'ALVAREZ', '1997-02-05', '04262279056', 'serggibel1997@gmailcom', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(79, '25979015', 'V', 'JOSE', 'MARIMON', '1997-11-12', '04262868065', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(80, '26202496', 'V', 'NAYBELIN', 'VILCHEZ', null, '04121047571', '*****@*****.**', '2016-05-09 16:52:38', '2016-05-09 16:52:38', null), array(81, '26297221', 'V', 'MARIA', 'PAZ', '1998-09-10', '04246408390', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(82, '26462053', 'V', 'EDGARDO', 'MORALES', '1997-04-21', '04267895459', 'moraleaedgardo@hotmailcom', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(83, '26471194', 'V', 'GREGORY', 'PEROZO', '1999-06-03', '04163595431', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(84, '26536743', 'V', 'EDUMARY', 'LOZANO', '1997-06-16', '04127612678', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(85, '27059292', 'V', 'YOAILUZ', 'SEMPRUN', '1998-08-04', '04268527559', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null), array(86, '27887398', 'V', 'ALEXANDER', 'CALDERA', null, '04246238080', '*****@*****.**', '2016-05-09 17:12:10', '2016-05-09 17:12:10', null), array(87, '30599191', 'V', 'KAROLAY', 'BRAVO', '1997-06-19', '04260986745', '*****@*****.**', '2016-05-04 00:00:00', '2016-05-04 00:00:00', null)); $em = $this->container->get('doctrine')->getEntityManager('default'); foreach ($persona as $data) { $entityPersona = new Persona(); //$entityPersona->setId($data[0]); $entityPersona->setCedu($data[1]); $entityPersona->setNaci($data[2]); $entityPersona->setNomb($data[3]); $entityPersona->setApell($data[4]); $entityPersona->setFechnac(new \Datetime($data[5])); $entityPersona->setTelf($data[6]); $entityPersona->setCorreo($data[7]); $entityPersona->setFechcreado(new \Datetime($data[8])); $entityPersona->setFechmodi(new \Datetime($data[9])); $entityPersona->setProfesionFix($data[10]); $manager->persist($entityPersona); } $manager->flush(); }