# HG changeset patch # User ymh # Date 1332287105 -3600 # Node ID 738cc74f9f7fad8170e49a686fe6cee350669678 # Parent 2688896be55a1812e277b6c18ee78d2d2d0bc8c1 improve documentation diff -r 2688896be55a -r 738cc74f9f7f .hgignore --- a/.hgignore Tue Mar 20 13:08:15 2012 +0100 +++ b/.hgignore Wed Mar 21 00:45:05 2012 +0100 @@ -9,3 +9,4 @@ syntax: regexp ^\.settings$ .*\.orig$ +.git diff -r 2688896be55a -r 738cc74f9f7f README.md --- a/README.md Tue Mar 20 13:08:15 2012 +0100 +++ b/README.md Wed Mar 21 00:45:05 2012 +0100 @@ -1,4 +1,3 @@ - # WikiTagBundle WikiTagBundle is a php bundle for [Symfony 2](http://symfony.com/) released by the [Institute for research and innovation](http://www.iri.centrepompidou.fr/) (IRI). @@ -247,17 +246,21 @@ ### wikitag:load-fixtures Allow loading of fixtures to populate the database. + The wikitag document table must exist and be synchronized. There fore the following commands must have been executed: - + php app/console wikitag:generate-document-class - + php app/console wikitag:sync-doc + + + php app/console wikitag:generate-document-class + + php app/console wikitag:sync-doc + The wikitag\_document.external\_id field must match the datasheet field fo the taggedsheet table. This command import in order categories, tags and documents\_tags. you may have memory problem. In this case you can import data by slices. Here is an example: - + all categories : php app/console wikitag:load-fixtures -C /path/to/data.json - + all tags : php app/console wikitag:load-fixtures -T /path/to/data.json - + 20000 first doctags: php app/console wikitag:load-fixtures -D -E 20000 /path/to/data.json - + 20000 other doctags: php app/console wikitag:load-fixtures -D -B 20001 -E 40000 /path/to/data.json - + last doctags: php app/console wikitag:load-fixtures -B 40001 /path/to/data.json -The -B (index Begin) and -E 9index End) works alson on the tags. Therefore you cans import tags also in slices. + + all categories : php app/console wikitag:load-fixtures -C /path/to/data.json + + all tags : php app/console wikitag:load-fixtures -T /path/to/data.json + + 20000 first doctags: php app/console wikitag:load-fixtures -D -E 20000 /path/to/data.json + + 20000 other doctags: php app/console wikitag:load-fixtures -D -B 20001 -E 40000 /path/to/data.json + + last doctags: php app/console wikitag:load-fixtures -B 40001 /path/to/data.json + +The -B (index Begin) and -E (index End) works alson on the tags. Therefore you cans import tags also in slices. diff -r 2688896be55a -r 738cc74f9f7f Resources/meta/LICENSE --- a/Resources/meta/LICENSE Tue Mar 20 13:08:15 2012 +0100 +++ b/Resources/meta/LICENSE Wed Mar 21 00:45:05 2012 +0100 @@ -1,3 +1,5 @@ +Copyright (c) 2012, IRI (Institute d Recherche de d'Innovation) +All rights reserved. CONTRAT DE LICENCE DE LOGICIEL LIBRE CeCILL-C @@ -1038,4 +1040,4 @@ jurisdiction, by the more diligent Party. -Version 1.0 dated 2006-09-05. \ No newline at end of file +Version 1.0 dated 2006-09-05.