From 80e2985f49b9b71a825d8d441be65339eaa6f28c Mon Sep 17 00:00:00 2001 From: Aatch Date: Tue, 10 Jan 2012 16:01:24 +1300 Subject: [PATCH 1/3] Wrap the Last Edited Date in single quotes, doesn't work otherwise. --- dev/YamlFixture.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/YamlFixture.php b/dev/YamlFixture.php index e0974a359..9b888c141 100644 --- a/dev/YamlFixture.php +++ b/dev/YamlFixture.php @@ -13,14 +13,14 @@ require_once 'thirdparty/spyc/spyc.php'; * Each identifier you specify delimits a new database record. * This means that every record needs to have an identifier, whether you use it or not. * - Third level: fields - each field for the record is listed as a 3rd level entry. - * In most cases, the fieldÕs raw content is provided. + * In most cases, the field�s raw content is provided. * However, if you want to define a relationship, you can do so using "=>" * * There are a couple of lines like this: * * Parent: =>Page.about * - * This will tell the system to set the ParentID database field to the ID of the Page object with the identifier ÒaboutÓ. + * This will tell the system to set the ParentID database field to the ID of the Page object with the identifier �about�. * This can be used on any has-one or many-many relationship. * Note that we use the name of the relationship (Parent), and not the name of the database field (ParentID) * @@ -231,7 +231,7 @@ class YamlFixture extends Object { //If LastEdited was set in the fixture, set it here if (array_key_exists('LastEdited', $fields)) { $manip = array($dataClass => array("command" => "update", "id" => $obj->id, - "fields" => array("LastEdited" => $this->parseFixtureVal($fields['LastEdited'])))); + "fields" => array("LastEdited" => "'".$this->parseFixtureVal($fields['LastEdited'])."'"))); DB::manipulate($manip); } } From 3f59f13c6b26ce75886e8544f21b650d56941927 Mon Sep 17 00:00:00 2001 From: James Miller Date: Tue, 10 Jan 2012 16:11:25 +1300 Subject: [PATCH 2/3] Fixed odd unicode character issue --- dev/YamlFixture.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/YamlFixture.php b/dev/YamlFixture.php index 9b888c141..98d3c6f1a 100644 --- a/dev/YamlFixture.php +++ b/dev/YamlFixture.php @@ -13,14 +13,14 @@ require_once 'thirdparty/spyc/spyc.php'; * Each identifier you specify delimits a new database record. * This means that every record needs to have an identifier, whether you use it or not. * - Third level: fields - each field for the record is listed as a 3rd level entry. - * In most cases, the field�s raw content is provided. + * In most cases, the fieldÕs raw content is provided. * However, if you want to define a relationship, you can do so using "=>" * * There are a couple of lines like this: * * Parent: =>Page.about * - * This will tell the system to set the ParentID database field to the ID of the Page object with the identifier �about�. + * This will tell the system to set the ParentID database field to the ID of the Page object with the identifier ÒaboutÓ. * This can be used on any has-one or many-many relationship. * Note that we use the name of the relationship (Parent), and not the name of the database field (ParentID) * From f1542edd1e78dae9af703bb3703d40fe6d941731 Mon Sep 17 00:00:00 2001 From: James Miller Date: Tue, 10 Jan 2012 16:15:03 +1300 Subject: [PATCH 3/3] Unicode actually fixed... --- dev/YamlFixture.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/YamlFixture.php b/dev/YamlFixture.php index 98d3c6f1a..597bcc009 100644 --- a/dev/YamlFixture.php +++ b/dev/YamlFixture.php @@ -13,14 +13,14 @@ require_once 'thirdparty/spyc/spyc.php'; * Each identifier you specify delimits a new database record. * This means that every record needs to have an identifier, whether you use it or not. * - Third level: fields - each field for the record is listed as a 3rd level entry. - * In most cases, the fieldÕs raw content is provided. + * In most cases, the field's raw content is provided. * However, if you want to define a relationship, you can do so using "=>" * * There are a couple of lines like this: * * Parent: =>Page.about * - * This will tell the system to set the ParentID database field to the ID of the Page object with the identifier ÒaboutÓ. + * This will tell the system to set the ParentID database field to the ID of the Page object with the identifier 'about'. * This can be used on any has-one or many-many relationship. * Note that we use the name of the relationship (Parent), and not the name of the database field (ParentID) *