Re: 3.x - Fixtures, import records ?
Yeah, just use the passed connection instance and do execute(...) On Tuesday, July 22, 2014 8:31:06 PM UTC+2, Thomas von Hassel wrote: > > Do you just exec() out to the mysql client or how would you do this in the > most “correct” way ? > > /thomas > > > On 22 Jul 2014, at 09:53, José Lorenzo wrote: > > For instance, I have .sql files stored in my project that I load in the > insert() method. > > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: 3.x - Fixtures, import records ?
Do you just exec() out to the mysql client or how would you do this in the most "correct" way ? /thomas On 22 Jul 2014, at 09:53, José Lorenzo wrote: > For instance, I have .sql files stored in my project that I load in the > insert() method. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: 3.x - Fixtures, import records ?
sure :) On 22 Jul 2014, at 10:33, José Lorenzo wrote: > It was very buggy and slow and what it did could be replaced easier with > specific queries for each driver. My personal plan is to do that in another > plugin like I did for y current Fixturize plugin in 2.x. > Maybe you want to help with that? :) > > On Tuesday, July 22, 2014 9:58:49 AM UTC+2, Thomas von Hassel wrote: > Yeah, that was i was going to do, i was just wondering why that feature got > the axe ? > > /thomas > > On 22 Jul 2014, at 09:53, José Lorenzo wrote: > >> Yes, the feature was removed. You can, though, override the _getRecords() or >> insert() method to do whatever you like. For instance, I have .sql files >> stored in my project that I load in the insert() method. >> >> On Monday, July 21, 2014 7:49:09 PM UTC+2, Thomas von Hassel wrote: >> Hey >> >> Is it true that the importing of records is gone from fixtures in 3.x ? >> >> I have a dataset that is prohibitive to define manually in the fixture so i >> have been relying on having it be imported with the 'records' => true key >> >> >> /thomas >> >> >> -- >> Like Us on FaceBook https://www.facebook.com/CakePHP >> Find us on Twitter http://twitter.com/CakePHP >> >> --- >> You received this message because you are subscribed to the Google Groups >> "CakePHP" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to cake-php+unsubscr...@googlegroups.com. >> To post to this group, send email to cake-php@googlegroups.com. >> Visit this group at http://groups.google.com/group/cake-php. >> For more options, visit https://groups.google.com/d/optout. > > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/d/optout. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: 3.x - Fixtures, import records ?
It was very buggy and slow and what it did could be replaced easier with specific queries for each driver. My personal plan is to do that in another plugin like I did for y current Fixturize plugin in 2.x. Maybe you want to help with that? :) On Tuesday, July 22, 2014 9:58:49 AM UTC+2, Thomas von Hassel wrote: > > Yeah, that was i was going to do, i was just wondering why that feature > got the axe ? > > /thomas > > On 22 Jul 2014, at 09:53, José Lorenzo wrote: > > Yes, the feature was removed. You can, though, override the _getRecords() > or insert() method to do whatever you like. For instance, I have .sql files > stored in my project that I load in the insert() method. > > On Monday, July 21, 2014 7:49:09 PM UTC+2, Thomas von Hassel wrote: >> >> Hey >> >> Is it true that the importing of records is gone from fixtures in 3.x ? >> >> I have a dataset that is prohibitive to define manually in the fixture so >> i have been relying on having it be imported with the 'records' => true key >> >> >> /thomas >> >> > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/d/optout. > > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: 3.x - Fixtures, import records ?
Yeah, that was i was going to do, i was just wondering why that feature got the axe ? /thomas On 22 Jul 2014, at 09:53, José Lorenzo wrote: > Yes, the feature was removed. You can, though, override the _getRecords() or > insert() method to do whatever you like. For instance, I have .sql files > stored in my project that I load in the insert() method. > > On Monday, July 21, 2014 7:49:09 PM UTC+2, Thomas von Hassel wrote: > Hey > > Is it true that the importing of records is gone from fixtures in 3.x ? > > I have a dataset that is prohibitive to define manually in the fixture so i > have been relying on having it be imported with the 'records' => true key > > > /thomas > > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/d/optout. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: 3.x - Fixtures, import records ?
Yes, the feature was removed. You can, though, override the _getRecords() or insert() method to do whatever you like. For instance, I have .sql files stored in my project that I load in the insert() method. On Monday, July 21, 2014 7:49:09 PM UTC+2, Thomas von Hassel wrote: > > Hey > > Is it true that the importing of records is gone from fixtures in 3.x ? > > I have a dataset that is prohibitive to define manually in the fixture so > i have been relying on having it be imported with the 'records' => true key > > > /thomas > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
3.x - Fixtures, import records ?
Hey Is it true that the importing of records is gone from fixtures in 3.x ? I have a dataset that is prohibitive to define manually in the fixture so i have been relying on having it be imported with the 'records' => true key /thomas -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Fixtures import
Hi, I'm unable to make my fixtures import table definitions. Core tests for fixture pass, so I don't know what's happenings. I've tried: $import = 'Model' $import = array('model' => 'Model', $connection = 'default'); $import = array('table' => 'models', $connection = 'default'); and so on... Anyone can drop me a clue? Tests works well if I declare a $fields array. --- Fran Iglesias http://cakephpilia.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---