[Dbix-class] How to avoid find when create related records
Andrew Beverley
andy at andybev.com
Sat Feb 3 18:08:48 GMT 2018
On Sat, 3 Feb 2018 17:05:06 +0100 Roman Daniel wrote:
> When I create customer together with address and pass the adress as
> hashref (which is very comfortable), the address resultset is first
> searched for the values passed and only if the address is not found,
> new address is created.
>
> Is there a way to make DBIC skip the find and always create the
> related record (while passing related record as plain hashref)?
Have you tried using populate() instead of create()?
Andy
More information about the DBIx-Class
mailing list