Author: jwage
Date: 2008-09-25 23:34:51 +0100 (Thu, 25 Sep 2008)
New Revision: 4979

Modified:
   branches/1.0/docs/cookbook/de/code-igniter-and-doctrine.txt
   branches/1.0/docs/cookbook/de/my-first-project.txt
   branches/1.0/docs/cookbook/en/code-igniter-and-doctrine.txt
   branches/1.0/docs/cookbook/en/my-first-project.txt
   branches/1.0/docs/cookbook/pt_BR/code-igniter-and-doctrine.txt
   branches/1.0/docs/cookbook/pt_BR/my-first-project.txt
   branches/1.0/docs/manual/de/data-fixtures.txt
   branches/1.0/docs/manual/de/getting-started/my-first-project-tutorial.txt
   branches/1.0/docs/manual/de/utilities/command-line-interface.txt
   branches/1.0/docs/manual/de/utilities/facade.txt
   branches/1.0/docs/manual/en/data-fixtures.txt
   branches/1.0/docs/manual/en/getting-started/my-first-project-tutorial.txt
   branches/1.0/docs/manual/en/utilities/command-line-interface.txt
   branches/1.0/docs/manual/en/utilities/facade.txt
   branches/1.0/docs/manual/ja/data-fixtures.txt
   branches/1.0/docs/manual/ja/facade.txt
   branches/1.0/docs/manual/ja/getting-started.txt
   branches/1.0/docs/manual/pt_BR/data-fixtures.txt
   branches/1.0/docs/manual/pt_BR/getting-started/my-first-project-tutorial.txt
   branches/1.0/docs/manual/pt_BR/utilities/command-line-interface.txt
   branches/1.0/docs/manual/pt_BR/utilities/facade.txt
   branches/1.0/lib/Doctrine/Data.php
Log:
[1.0] fixes #1457 Removed the dummy data code and updated documentation


Modified: branches/1.0/docs/cookbook/de/code-igniter-and-doctrine.txt
===================================================================
--- branches/1.0/docs/cookbook/de/code-igniter-and-doctrine.txt 2008-09-25 
22:23:39 UTC (rev 4978)
+++ branches/1.0/docs/cookbook/de/code-igniter-and-doctrine.txt 2008-09-25 
22:34:51 UTC (rev 4979)
@@ -145,7 +145,6 @@
 ./doctrine generate-yaml-db
 ./doctrine generate-yaml-models
 ./doctrine load-data
-./doctrine load-dummy-data
 ./doctrine migrate
 ./doctrine rebuild-db
 $ 

Modified: branches/1.0/docs/cookbook/de/my-first-project.txt
===================================================================
--- branches/1.0/docs/cookbook/de/my-first-project.txt  2008-09-25 22:23:39 UTC 
(rev 4978)
+++ branches/1.0/docs/cookbook/de/my-first-project.txt  2008-09-25 22:34:51 UTC 
(rev 4979)
@@ -57,7 +57,6 @@
 ./doctrine generate-yaml-db
 ./doctrine generate-yaml-models
 ./doctrine load-data
-./doctrine load-dummy-data
 ./doctrine migrate
 ./doctrine rebuild-db
 </code>

Modified: branches/1.0/docs/cookbook/en/code-igniter-and-doctrine.txt
===================================================================
--- branches/1.0/docs/cookbook/en/code-igniter-and-doctrine.txt 2008-09-25 
22:23:39 UTC (rev 4978)
+++ branches/1.0/docs/cookbook/en/code-igniter-and-doctrine.txt 2008-09-25 
22:34:51 UTC (rev 4979)
@@ -145,7 +145,6 @@
 ./doctrine generate-yaml-db
 ./doctrine generate-yaml-models
 ./doctrine load-data
-./doctrine load-dummy-data
 ./doctrine migrate
 ./doctrine rebuild-db
 $ 

Modified: branches/1.0/docs/cookbook/en/my-first-project.txt
===================================================================
--- branches/1.0/docs/cookbook/en/my-first-project.txt  2008-09-25 22:23:39 UTC 
(rev 4978)
+++ branches/1.0/docs/cookbook/en/my-first-project.txt  2008-09-25 22:34:51 UTC 
(rev 4979)
@@ -57,7 +57,6 @@
 ./doctrine generate-yaml-db
 ./doctrine generate-yaml-models
 ./doctrine load-data
-./doctrine load-dummy-data
 ./doctrine migrate
 ./doctrine rebuild-db
 </code>

Modified: branches/1.0/docs/cookbook/pt_BR/code-igniter-and-doctrine.txt
===================================================================
--- branches/1.0/docs/cookbook/pt_BR/code-igniter-and-doctrine.txt      
2008-09-25 22:23:39 UTC (rev 4978)
+++ branches/1.0/docs/cookbook/pt_BR/code-igniter-and-doctrine.txt      
2008-09-25 22:34:51 UTC (rev 4979)
@@ -145,7 +145,6 @@
 ./doctrine generate-yaml-db
 ./doctrine generate-yaml-models
 ./doctrine load-data
-./doctrine load-dummy-data
 ./doctrine migrate
 ./doctrine rebuild-db
 $ 

Modified: branches/1.0/docs/cookbook/pt_BR/my-first-project.txt
===================================================================
--- branches/1.0/docs/cookbook/pt_BR/my-first-project.txt       2008-09-25 
22:23:39 UTC (rev 4978)
+++ branches/1.0/docs/cookbook/pt_BR/my-first-project.txt       2008-09-25 
22:34:51 UTC (rev 4979)
@@ -57,7 +57,6 @@
 ./doctrine generate-yaml-db
 ./doctrine generate-yaml-models
 ./doctrine load-data
-./doctrine load-dummy-data
 ./doctrine migrate
 ./doctrine rebuild-db
 </code>

Modified: branches/1.0/docs/manual/de/data-fixtures.txt
===================================================================
--- branches/1.0/docs/manual/de/data-fixtures.txt       2008-09-25 22:23:39 UTC 
(rev 4978)
+++ branches/1.0/docs/manual/de/data-fixtures.txt       2008-09-25 22:34:51 UTC 
(rev 4979)
@@ -38,19 +38,6 @@
 $data->importData($path, $format, $models);
 </code>
 
-++ Dummy Data
-
-With Doctrine Data you can import dummy data to all your Doctrine Records
-
-<code type="php">
-$numRecords = 3; // Number of dummy records to populate for each model
-$models = array('User', 'Email'); // Models to generate dummy data for. If 
none specified it generates dummy data for all 
-loaded models.
-
-$data = new Doctrine_Data();
-$data->importDummyData($numRecords, $models);
-</code>
-
 ++ Writing
 
 You can write your fixtures files manually and load them in to your 
applications. Below is a sample data.yml fixtures file. 

Modified: 
branches/1.0/docs/manual/de/getting-started/my-first-project-tutorial.txt
===================================================================
--- branches/1.0/docs/manual/de/getting-started/my-first-project-tutorial.txt   
2008-09-25 22:23:39 UTC (rev 4978)
+++ branches/1.0/docs/manual/de/getting-started/my-first-project-tutorial.txt   
2008-09-25 22:34:51 UTC (rev 4979)
@@ -57,7 +57,6 @@
 ./doctrine generate-yaml-db
 ./doctrine generate-yaml-models
 ./doctrine load-data
-./doctrine load-dummy-data
 ./doctrine migrate
 ./doctrine rebuild-db
 </code>

Modified: branches/1.0/docs/manual/de/utilities/command-line-interface.txt
===================================================================
--- branches/1.0/docs/manual/de/utilities/command-line-interface.txt    
2008-09-25 22:23:39 UTC (rev 4978)
+++ branches/1.0/docs/manual/de/utilities/command-line-interface.txt    
2008-09-25 22:34:51 UTC (rev 4979)
@@ -28,7 +28,6 @@
 ./doctrine generate-yaml-db
 ./doctrine generate-yaml-models
 ./doctrine load-data
-./doctrine load-dummy-data
 ./doctrine migrate
 ./doctrine rebuild-db
 

Modified: branches/1.0/docs/manual/de/utilities/facade.txt
===================================================================
--- branches/1.0/docs/manual/de/utilities/facade.txt    2008-09-25 22:23:39 UTC 
(rev 4978)
+++ branches/1.0/docs/manual/de/utilities/facade.txt    2008-09-25 22:34:51 UTC 
(rev 4979)
@@ -144,7 +144,6 @@
 GenerateYamlDb
 GenerateYamlModels
 LoadData
-LoadDummyData
 Migrate
 RebuildDb
 </code>

Modified: branches/1.0/docs/manual/en/data-fixtures.txt
===================================================================
--- branches/1.0/docs/manual/en/data-fixtures.txt       2008-09-25 22:23:39 UTC 
(rev 4978)
+++ branches/1.0/docs/manual/en/data-fixtures.txt       2008-09-25 22:34:51 UTC 
(rev 4979)
@@ -38,19 +38,6 @@
 $data->importData($path, $format, $models);
 </code>
 
-++ Dummy Data
-
-With Doctrine Data you can import dummy data to all your Doctrine Records
-
-<code type="php">
-$numRecords = 3; // Number of dummy records to populate for each model
-$models = array('User', 'Email'); // Models to generate dummy data for. If 
none specified it generates dummy data for all 
-loaded models.
-
-$data = new Doctrine_Data();
-$data->importDummyData($numRecords, $models);
-</code>
-
 ++ Writing
 
 You can write your fixtures files manually and load them in to your 
applications. Below is a sample data.yml fixtures file. 

Modified: 
branches/1.0/docs/manual/en/getting-started/my-first-project-tutorial.txt
===================================================================
--- branches/1.0/docs/manual/en/getting-started/my-first-project-tutorial.txt   
2008-09-25 22:23:39 UTC (rev 4978)
+++ branches/1.0/docs/manual/en/getting-started/my-first-project-tutorial.txt   
2008-09-25 22:34:51 UTC (rev 4979)
@@ -57,7 +57,6 @@
 ./doctrine generate-yaml-db
 ./doctrine generate-yaml-models
 ./doctrine load-data
-./doctrine load-dummy-data
 ./doctrine migrate
 ./doctrine rebuild-db
 </code>

Modified: branches/1.0/docs/manual/en/utilities/command-line-interface.txt
===================================================================
--- branches/1.0/docs/manual/en/utilities/command-line-interface.txt    
2008-09-25 22:23:39 UTC (rev 4978)
+++ branches/1.0/docs/manual/en/utilities/command-line-interface.txt    
2008-09-25 22:34:51 UTC (rev 4979)
@@ -28,7 +28,6 @@
 ./doctrine generate-yaml-db
 ./doctrine generate-yaml-models
 ./doctrine load-data
-./doctrine load-dummy-data
 ./doctrine migrate
 ./doctrine rebuild-db
 

Modified: branches/1.0/docs/manual/en/utilities/facade.txt
===================================================================
--- branches/1.0/docs/manual/en/utilities/facade.txt    2008-09-25 22:23:39 UTC 
(rev 4978)
+++ branches/1.0/docs/manual/en/utilities/facade.txt    2008-09-25 22:34:51 UTC 
(rev 4979)
@@ -144,7 +144,6 @@
 GenerateYamlDb
 GenerateYamlModels
 LoadData
-LoadDummyData
 Migrate
 RebuildDb
 </code>

Modified: branches/1.0/docs/manual/ja/data-fixtures.txt
===================================================================
--- branches/1.0/docs/manual/ja/data-fixtures.txt       2008-09-25 22:23:39 UTC 
(rev 4978)
+++ branches/1.0/docs/manual/ja/data-fixtures.txt       2008-09-25 22:34:51 UTC 
(rev 4979)
@@ -37,18 +37,6 @@
 $data->importData($path, $format, $models);
 </code>
 
-++ ダミーデータ
-
-Doctrine_DataでダミーのデータをすべてのDoctrine Recordにインポートします
-
-<code type="php">
-$numRecords = 3; // それぞれのモデルに対して投入するダミーレコードの番号
-$models = array('User', 'Email'); // 
ダミーデータを生成するためのモデル。何も指定されない場合すべてのロードされたモデルに対してダミーデータを生成する。
-
-$data = new Doctrine_Data();
-$data->importDummyData($numRecords, $models);
-</code>
-
 ++ 書く
 
 
手動でフィクスチャファイルを書きアプリケーションでそれらをロードできます。下記はサンプルのdata.ymlフィクスチャファイルです。データフィクスチャファイルを複数のファイルに分割することもできます。Doctrineはすべてのフィクスチャファイルを読み込み解析し、すべてのデータをロードします。

Modified: branches/1.0/docs/manual/ja/facade.txt
===================================================================
(Binary files differ)

Modified: branches/1.0/docs/manual/ja/getting-started.txt
===================================================================
--- branches/1.0/docs/manual/ja/getting-started.txt     2008-09-25 22:23:39 UTC 
(rev 4978)
+++ branches/1.0/docs/manual/ja/getting-started.txt     2008-09-25 22:34:51 UTC 
(rev 4979)
@@ -476,7 +476,6 @@
 ./doctrine generate-yaml-db
 ./doctrine generate-yaml-models
 ./doctrine load-data
-./doctrine load-dummy-data
 ./doctrine migrate
 ./doctrine rebuild-db
 </code>

Modified: branches/1.0/docs/manual/pt_BR/data-fixtures.txt
===================================================================
--- branches/1.0/docs/manual/pt_BR/data-fixtures.txt    2008-09-25 22:23:39 UTC 
(rev 4978)
+++ branches/1.0/docs/manual/pt_BR/data-fixtures.txt    2008-09-25 22:34:51 UTC 
(rev 4979)
@@ -38,19 +38,6 @@
 $data->importData($path, $format, $models);
 </code>
 
-++ Dummy Data
-
-With Doctrine Data you can import dummy data to all your Doctrine Records
-
-<code type="php">
-$numRecords = 3; // Number of dummy records to populate for each model
-$models = array('User', 'Email'); // Models to generate dummy data for. If 
none specified it generates dummy data for all 
-loaded models.
-
-$data = new Doctrine_Data();
-$data->importDummyData($numRecords, $models);
-</code>
-
 ++ Writing
 
 You can write your fixtures files manually and load them in to your 
applications. Below is a sample data.yml fixtures file. 

Modified: 
branches/1.0/docs/manual/pt_BR/getting-started/my-first-project-tutorial.txt
===================================================================
--- 
branches/1.0/docs/manual/pt_BR/getting-started/my-first-project-tutorial.txt    
    2008-09-25 22:23:39 UTC (rev 4978)
+++ 
branches/1.0/docs/manual/pt_BR/getting-started/my-first-project-tutorial.txt    
    2008-09-25 22:34:51 UTC (rev 4979)
@@ -57,7 +57,6 @@
 ./doctrine generate-yaml-db
 ./doctrine generate-yaml-models
 ./doctrine load-data
-./doctrine load-dummy-data
 ./doctrine migrate
 ./doctrine rebuild-db
 </code>

Modified: branches/1.0/docs/manual/pt_BR/utilities/command-line-interface.txt
===================================================================
--- branches/1.0/docs/manual/pt_BR/utilities/command-line-interface.txt 
2008-09-25 22:23:39 UTC (rev 4978)
+++ branches/1.0/docs/manual/pt_BR/utilities/command-line-interface.txt 
2008-09-25 22:34:51 UTC (rev 4979)
@@ -28,7 +28,6 @@
 ./doctrine generate-yaml-db
 ./doctrine generate-yaml-models
 ./doctrine load-data
-./doctrine load-dummy-data
 ./doctrine migrate
 ./doctrine rebuild-db
 

Modified: branches/1.0/docs/manual/pt_BR/utilities/facade.txt
===================================================================
--- branches/1.0/docs/manual/pt_BR/utilities/facade.txt 2008-09-25 22:23:39 UTC 
(rev 4978)
+++ branches/1.0/docs/manual/pt_BR/utilities/facade.txt 2008-09-25 22:34:51 UTC 
(rev 4979)
@@ -144,7 +144,6 @@
 GenerateYamlDb
 GenerateYamlModels
 LoadData
-LoadDummyData
 Migrate
 RebuildDb
 </code>

Modified: branches/1.0/lib/Doctrine/Data.php
===================================================================
--- branches/1.0/lib/Doctrine/Data.php  2008-09-25 22:23:39 UTC (rev 4978)
+++ branches/1.0/lib/Doctrine/Data.php  2008-09-25 22:34:51 UTC (rev 4979)
@@ -223,23 +223,6 @@
     }
 
     /**
-     * importDummyData
-     *
-     * Interface for importing dummy data to models
-     * 
-     * @param string $num 
-     * @param string $models 
-     * @return void
-     */
-    public function importDummyData($num = 3, $models = array())
-    {
-        $import = new Doctrine_Data_Import();
-        $import->setModels($models);
-        
-        return $import->doImportDummyData($num);
-    }
-
-    /**
      * isRelation
      *
      * Check if a fieldName on a Doctrine_Record is a relation, if it is we 
return that relationData


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" 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.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to