Re: 3.x - Fixtures, import records ?

2014-07-22 Thread José Lorenzo
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 ?

2014-07-22 Thread Thomas von Hassel
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 ?

2014-07-22 Thread Thomas von Hassel
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 ?

2014-07-22 Thread José Lorenzo
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 ?

2014-07-22 Thread Thomas von Hassel
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 ?

2014-07-22 Thread José Lorenzo
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.