A typical Developer Blog
by Gordon Franke
Icon

Change from Doctrine to Doctrine_Core with one command

To change all your code from Doctrine to Doctrine_Core you can use the following command

1
for fl in `find apps/ config/ lib/ test/ -name *.php`; do mv $fl $fl.old; sed 's/Doctrine::/Doctrine_Core::/g' $fl.old > $fl; rm -f $fl.old; done

When you have a plugin you can use this command

1
for fl in `find . -name *.php`; do mv $fl $fl.old; sed 's/Doctrine::/Doctrine_Core::/g' $fl.old > $fl; rm -f $fl.old; done

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Author:

Category: doctrine, symfony, Uncategorized, unix

Tagged: , ,

2 Responses

  1. Joshua says:

    Do be careful with just pasting that command as it will just wipe out your files :) . You need to change the > into a greater than sign first!

  2. thank you i have fix it.

Leave a Reply

CommentLuv badge