Dec 2, 2009
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.











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!
thank you i have fix it.