Hey, I recently ran into this annoying problem as well, and thought that 
I'd post and update for other people that may run into this problem.  I 
found a fix after unpacking the phar file.  Apparently, the addsql() method 
is actually AbstractMigration::_addsql() inside of the phar file.  Just 
change your call to that, and it should now work.

I guess the phar package is lagging behind the latest on github.  So, be 
prepared to change this back to addsql() once the phar file gets updated.

On Friday, July 12, 2013 9:59:39 AM UTC-4, BadeAde wrote:
>
> Hi,
>
> I am having exactly the same issue with the addSql() method throws and 
> error. Did you manage to get around this?
>
> Thanks
>
> On Friday, 13 April 2012 04:35:38 UTC+1, matubaum wrote:
>>
>> Thank you marco, I could configure it, it was hard  because the 
>> documentation si not complete, but I did it.
>>
>> This is how my configurations look like: 
>>  - migrations-db.php: http://pastebin.com/VA9bX2vz.
>>  - migrations.yml: http://pastebin.com/7FXByLK6
>>
>> My problem is that when i run my migrations, it throws: 
>> Call to undefined method 
>> DoctrineMigrations\Version20120412225542::addSql() in 
>> /home/matias/Descargas/migrations/DoctrineMigrations/Version20120412225542.php
>>  
>> on line 12
>>
>> And that is weird because my migration class extends from 
>> AbstractMigration. Maybe the phar file is not updated and this method is 
>> not there. So, I now i'm thinking about creating my own phar from sources, 
>> so i'm dealing with pecl trying to install phar extension.
>>
>> But, is it possible AbstractMigration (in doctrine-migrations.phar)  is 
>> not containing addSql method because it's old?
>>
>> Thanks in advance
>>
>>
>>
>>
>>
>>
>>
>> 2012/4/11 Marco Pivetta <[email protected]>
>>
>>> Check https://github.com/doctrine/migrations-documentation for now
>>>
>>> Marco Pivetta 
>>>
>>> http://twitter.com/Ocramius      
>>>
>>> http://marco-pivetta.com     
>>>
>>>
>>>
>>> On 11 April 2012 19:10, Matias Montenegro <[email protected]> wrote:
>>>
>>>> Hello everybody,
>>>>
>>>> I'm trying to find out a way to use DoctrineMigrations in projects that 
>>>> are not using doctrine (I already did this in Sf2 projects). I'm testing 
>>>> doctrine-migrations.phar which seems to be the  solution to my problem. 
>>>>
>>>> But, the thing is, there is no documentation at all, documentation site 
>>>> throws a 404 error. And I just want to know how to configure it using a 
>>>> file (instead of passing all connection parameters when i run the command) 
>>>> and where should i put all my migrations classes, etc.
>>>>
>>>> Any idea where can i find how to do this?
>>>>
>>>> -- 
>>>> Matias
>>>>
>>>>  -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "doctrine-user" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to 
>>>> [email protected].
>>>> For more options, visit this group at 
>>>> http://groups.google.com/group/doctrine-user?hl=en.
>>>>
>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "doctrine-user" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to 
>>> [email protected].
>>> For more options, visit this group at 
>>> http://groups.google.com/group/doctrine-user?hl=en.
>>>
>>
>>
>>
>> -- 
>> Matias
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to