![]() |
![]()
| ![]() |
![]()
NAMEInterchange6::Schema::Result::Cart DESCRIPTIONThe Cart class (table) is used for storing shopping carts with products in the cart held in the related Interchange6::Schema::Result::CartProduct class. ACCESSORScarts_idPrimary key. nameThe name of the cart. You might perhaps have a "main" cart that is used by default for the current shopping session and also a "wishlist" cart. Other uses might be "saved_items" so a user can save things for another time or maybe on logout all cart items are moved to "previous_session" cart. users_idForeign key constraint on "users_id" in Interchange6::Schema::Result::User via "user" relationship. sessions_idForeign key constraint on "sessions_id" in Interchange6::Schema::Result::Session via "session" relationship. Is nullable. createdDate and time when this record was created returned as DateTime object. Value is auto-set on insert. last_modifiedDate and time when this record was last modified returned as DateTime object. Value is auto-set on insert and update. UNIQUE CONSTRAINTScarts_name_sessions_idOn ( name, sessions_id ) RELATIONScart_productsType: has_many Related object: Interchange6::Schema::Result::CartProduct sessionType: belongs_to Related object: Interchange6::Schema::Result::Session userType: belongs_to Related object: Interchange6::Schema::Result::User METHODSclone($name)Return a clone of the with the new name. If a clone with the same name and same session already exists, the clone is removed and recreated anew.
|