Commit graph

68 commits

Author SHA1 Message Date
Toni Uebernickel 7ab2b44b23 convert Faker datetime into string
This fixes #221.

Faker returns a \DateTime object, but the YAML format requires a string.
2016-01-24 12:10:37 +01:00
Toni Uebernickel 32196a6c08 use correct ParseException 2016-01-24 11:58:59 +01:00
Toni Uebernickel 4db28b7bbd introduce Propel\Bundle\PropelBundle namespace 2016-01-23 21:41:17 +01:00
sylvain plançon 79f0fe4c61 Use Propel::getDB() to find adapter using by and use quoteIdentifier() from adapter to protect fieldnames and tablenames. 2014-07-29 22:25:04 +02:00
sylvain plançon 16e930bc92 Add backquotes to protect field's names and table name during the dump command. 2014-07-28 23:18:20 +02:00
Toni Uebernickel 8d60937f84 Merge pull request #256 from pimpreneil/1.2
Add inheritance support for fixtures with many to many relationship
2014-01-07 07:46:07 +01:00
Toni Uebernickel ea98e9c18d Merge pull request #214 from mheiniger/speedupFixtureLoader
Speedup propel:fixture:load
2013-05-23 05:06:55 -07:00
Toni Uebernickel c71d4f9fb1 move default values into configuration 2013-05-23 12:10:03 +02:00
Michael Heiniger c043dbb027 added default paths 2013-04-12 08:28:47 +02:00
Michael Heiniger fc94f5f681 * configurable model search path
* extended documentation
2013-04-11 10:37:16 +02:00
Toni Uebernickel 675e711dd3 add support for delegated fixtures in 1:1 relation 2013-04-08 17:14:36 +02:00
Michael Heiniger ed71a9f1be removed loop, added direct paths 2013-03-13 10:45:22 +01:00
Michael Heiniger 43b7711f94 just search in src and vendor folders for tablemaps 2013-03-08 19:20:40 +01:00
William DURAND d6e4ed86d2 use PropelColumnTypes instead of hardcoded values 2013-02-16 01:57:35 +01:00
William DURAND 0443b6706c Fix tests 2013-02-16 01:57:23 +01:00
William DURAND a758f32421 Fix CS 2013-01-11 18:57:24 +01:00
jaugustin eb87d37d7b fix load fixture array in an object field 2012-12-22 17:33:56 +01:00
Jonathan Petitcolas 7f5d1ea0db Also remove ancestors data when removing former fixtures (refs #198) 2012-12-10 14:48:39 +01:00
Jonathan Petitcolas 7733e98aa7 Allow to specify a child object in YAML fixtures to fill a relationship based on parent class (refs #195) 2012-11-28 18:16:56 +01:00
William Durand abf90dd1fc Merge pull request #175 from cedriclombardot/fix-data-dump-with-object
Fix data dump with object
2012-08-22 05:44:55 -07:00
Anh Tuan Kieu 51d91fc5b8 Fix yaml dumper for object columns 2012-08-20 17:06:38 +02:00
Anh Tuan Kieu e27bbe9a61 Fix code review 2012-08-20 15:26:07 +02:00
Anh Tuan Kieu 3fb8fe5d1a Manage multiple connections. Add ability to pass output dir to FixtureDumpCommand 2012-08-20 13:52:51 +02:00
Adel 4219e706d4 RUN PHP-CS PSR-2 2012-07-19 17:40:35 +01:00
Toni Uebernickel 90a597771e recursively merge fixtures 2012-07-02 21:27:21 +02:00
William DURAND 6970913db9 Fixed CS 2012-05-24 16:36:46 +02:00
William DURAND f675e3982e [DataFixtures] [Loader] Pass current connection to associate objects 2012-05-21 17:43:59 +02:00
William DURAND ca45e9c5cf Added faker support 2012-05-08 18:32:32 +02:00
William DURAND 2e7bb13431 [DataFixtures] Fixed N-N relations 2012-05-06 19:37:48 +02:00
Jeremie Augustin 5998eca0e5 fix CS 2012-05-04 14:18:20 +02:00
Jeremie Augustin 55b5e5dbf2 fix load fixtures for one-to-many relation with FQCN 2012-05-04 12:46:38 +02:00
William Durand f50df06a8b Merge pull request #147 from havvg/hotfix/foreignkey-dataloader
merge fixtures before loading them
2012-05-02 08:15:44 -07:00
Toni Uebernickel 792beb782a merge fixtures before loading them 2012-05-02 16:47:17 +02:00
clombardot 3b4ce8e784 Enable php in yaml fixtures
Make easiest loading of serialized datas in object columns
2012-04-25 16:11:30 +02:00
William DURAND b890706c4e Merge branch '2.0'
Conflicts:
	Tests/DataFixtures/Dumper/YamlDataDumperTest.php
	Tests/DataFixtures/Loader/YamlDataLoaderTest.php
2012-04-06 12:57:52 +02:00
Toni Uebernickel 9491c1b27c backport f589d31 from master 2012-03-14 10:16:09 +01:00
Toni Uebernickel ca68ea6c79 allow self reference in DataLoader
A self referencing entry will trigger an "UPDATE" rather than another "INSERT" with the new data.
2012-03-05 15:51:02 +01:00
Toni Uebernickel f589d318ee add tests for DataFixtures 2012-03-05 12:31:32 +01:00
William DURAND 3397d7422d Removed the use of CLASS_DEFAULT constant 2012-03-03 18:50:21 +01:00
William DURAND ebf5aece63 Removed the use of CLASS_DEFAULT constant 2012-03-03 18:47:08 +01:00
William DURAND c666ae7e76 Merge pull request #112 from havvg/master
improve performance while loading DatabaseMap
2012-03-02 04:37:55 -08:00
Toni Uebernickel e7f977c04d allow re-usage of DataLoader 2012-03-02 12:22:14 +01:00
Toni Uebernickel 111a8e5815 improve performance while loading DatabaseMap 2012-03-02 10:56:37 +01:00
Tac Tacelosky 3d54ececfd get class (not table) for ordering 2012-02-28 23:53:50 +01:00
Toni Uebernickel e3e6878b55 disable FOREIGN_KEY_CHECKS for MySQL 2012-02-28 11:10:59 +01:00
Toni Uebernickel 6a4d86dfe2 rename WipeDataLoader to DataWiper 2012-02-28 10:40:55 +01:00
Toni Uebernickel 264708ab16 fix minor code styles 2012-02-24 00:22:04 +01:00
Toni Uebernickel 82170e1718 dump array columns as array 2012-02-22 10:15:41 +01:00
Toni Uebernickel d2e2805fac add handling of array type in data loader 2012-02-21 23:37:29 +01:00
Toni Uebernickel bb9dfbef42 add WipeDataLoader 2012-02-18 02:34:34 +01:00