Last active
August 29, 2015 14:09
-
-
Save muskie9/5d2d62f1c44318679564 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bar has_one Foo
Foo has_many Bar
I have an onBeforeWrite that combines
barnum
withPrefix
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.