A typical Developer Blog
by Gordon Franke
Icon

Wechseln von Doctrine to Doctrine_Core mit einem Befehl

Um deinen Code von Doctrine auf Doctrine_Core umzustellen kannst du folgenden Befehl verwenden

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

Wenn du ein Plugin hast benutze folgenden Befehl

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.

Ähnliche Artikel bereitgestellt von Yet Another Related Posts Plugin.

Author:

Category: doctrine, symfony, Uncategorized, unix

Tagged: , ,

2 Responses

  1. Joshua sagt:

    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!

Leave a Reply

CommentLuv badge