Skip to content

Instantly share code, notes, and snippets.

@muskie9
Last active August 29, 2015 14:09
Show Gist options
  • Save muskie9/5d2d62f1c44318679564 to your computer and use it in GitHub Desktop.
Save muskie9/5d2d62f1c44318679564 to your computer and use it in GitHub Desktop.
Foo:
subfoo1:
Title: Foo 1
Prefix: FOO
subfoo2:
Title: Foo 2
Prefix: SFOO
Bar:
subbar1:
barnum: 1
Prefix: =>Foo.subfoo1
subbar2:
barnum: 1
Prefix: =>Foo.subfoo2
@muskie9
Copy link
Author

muskie9 commented Nov 18, 2014

Bar has_one Foo Foo has_many Bar

I have an onBeforeWrite that combines barnum with Prefix field on Foo.

When testing, I call $obj = $this->objFromFixture('Bar', 'subbar1'); and $this->assertEquals($obj->CombinedField, 'myValueHere'); it's not setting the relation lined out in line 12 above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment