Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use variables of relations #850

Closed
jtkDvlp opened this issue Jan 8, 2018 · 2 comments
Closed

use variables of relations #850

jtkDvlp opened this issue Jan 8, 2018 · 2 comments

Comments

@jtkDvlp
Copy link

jtkDvlp commented Jan 8, 2018

Hi there,

is it possible to use variables of relations in yaml?

Example:

my\entity\object:
      xyz:
            created: '<dateTime()>'

my\entity\objectLog:
      xyzLog:
            entryFor: '@xyz'
            timestamp: '<dateTimeBetween($entryFor->created)>'

Got the following error:

Could not lex the value ">created"

@theofidry
Copy link
Member

The syntax is valid but things only work up to a certain degree (see #601). An easy workaround in the meantime is to leverage custom Faker providers

@theofidry
Copy link
Member

Closing as it's part of #601

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

No branches or pull requests

2 participants