Update the migration docs a little. Begin to build a test for addChild/addRev.

This commit is contained in:
Colin Kuskie 2010-01-14 13:34:44 -08:00
parent 1331bf9828
commit 7ee588c38e
2 changed files with 1 additions and 4 deletions

View file

@ -21,7 +21,7 @@ Definition
----------
You must migrate your asset to use the new WebGUI::Definition::Asset class instead of the definition() method. This executes several orders of magnitude faster, but is different in a few ways.
1) You pass your definition into use WebGUI::Definition::Asset ( def goes here );
1) You define your definition using property and attribute calls, as well as standard Moose syntax.
2) You no longer have a reference to $session, so you'll need to make sub routine refs to to method calls. However, you cannot use sub refs on any attributes or the following property elements: tableName, fieldType.

View file

@ -185,9 +185,6 @@ my $session = WebGUI::Test->session;
$session->db->write("delete from asset where assetId=?", [$testId]);
$session->db->write("delete from assetData where assetId=?", [$testId]);
$testData->{hashAccess} = 'stuffed value';
diag $testData->{hashAccess};
}
{