FactoryGirl\Provider\Doctrine\FixtureFactory::checkFieldOverrides PHP Method

checkFieldOverrides() protected method

protected checkFieldOverrides ( EntityDef $def, array $fieldOverrides )
$def EntityDef
$fieldOverrides array
    protected function checkFieldOverrides(EntityDef $def, array $fieldOverrides)
    {
        $extraFields = array_diff(array_keys($fieldOverrides), array_keys($def->getFieldDefs()));
        if (!empty($extraFields)) {
            throw new Exception("Field(s) not in " . $def->getEntityType() . ": '" . implode("', '", $extraFields) . "'");
        }
    }