-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Complete reference to random data functions + related pre-existing entity in database #64
Comments
Hi!
You can find more information about this here, including how to register your own.
IIRC, if you are using the underlying loader in your tests (to load specific files, as opposed to the generic load all fixtures based on an environment), you can fetch entities beforehand and pass them as existing object to the loader. In this case they can be referenced by the fixtures. I don't remember the exact specifics though so you would need to dig a little bit there. |
Hello, where can I find a complete reference to functions like <firstName()>, <lastName()>, <sentence()> etc.? I'm unable to find it in the docs.
And... Is there a function to reference a related pre-existing entity in database? This entity is not loaded in any fixture but already exists in database and has a relation to current entity in fixture.
Thank you.
The text was updated successfully, but these errors were encountered: