Diferencia entre incrusta muchos y tiene muchos en mongoid
¿Puede alguien explicarme la diferencia entre embeds_many
y has_many
en mongoid?
35
1 answers
embeds_many
se utiliza para almacenar documentos relativos dentro del documento principal.
has_many
se utiliza para almacenar una relación entre documentos en colecciones separadas. Los registros relativos de has_many
tienen un campo que almacena el id del documento padre.
54
Author: Hck,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-01-26 19:05:47
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-01-26 19:05:47