j4mie / paris

A lightweight Active Record implementation for PHP5, built on top of Idiorm.

Home Page:http://j4mie.github.com/idiormandparis/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Saving associations?

quasipickle opened this issue · comments

Does Paris save associated models?

For example, if I have a User model and each User has an associated Profile model, does the Profile get saved when I save the User?

No, there are no cascading saves in Paris: http://paris.readthedocs.io/en/latest/philosophy.html

If you need this then Eloquent ORM might be a better fit: https://laravel.com/docs/5.4/eloquent-relationships - you'll notice it is very similar to Paris/Idiorm - this is not an accident; Taylor used them as inspiration for his Eloquent ORM when he was writing it.