Interchange6::Schema::Result::Message
Shared messages table for blog, order comments, reviews, bb, etc.
A short-cut accessor which takes a message type name ("name" in Interchange6::Schema::Result::MessageType) as argument and sets "message_types_id" to the appropriate value;
Primary key.
The title of the message.
Foreign key constraint on "message_types_id" in Interchange6::Schema::Result::MessageType via "message_type" relationship.
The uri of the message data.
Unique constraint.
The format of the text held in "content", e.g. plain, html or markdown. Defaults to 'plain'.
Content for the message.
Summary/teaser for "content".
Defaults to empty string.
Foreign key constraint on "users_id" in Interchange6::Schema::Result::User via "author" relationship. Is nullable.
Numeric rating of the message by a user.
Do you recommend the message? Default is no. Is nullable.
Is this public viewable? Default is no.
Has this been approved by someone with proper rights?
Foreign key constraint on "users_id" in Interchange6::Schema::Result::User via "approved_by" relationship. Is nullable
For use by DBIx::Class::Tree::AdjacencyList this defines the "messages_id" of the parent of this message (if any).
Date and time when this record was created returned as DateTime object. Value is auto-set on insert.
Date and time when this record was last modified returned as DateTime object. Value is auto-set on insert and update.
Type: belongs_to
Related object: Interchange6::Schema::Result::User
Related object: Interchange6::Schema::Result::MessageType
Type: might_have
Related object: Interchange6::Schema::Result::OrderComment
Type: many_to_many
Accessor to related Order results.
Type: has_many
Related object: Interchange6::Schema::Result::ProductMessage
Accessor to related Product results.
Related object: Interchange6::Schema::Result::NavigationMessage
Accessor to related Navigation results.
Related object: Interchange6::Schema::Result::MediaMessage
Type: many_to_many with media
parent
ancestors
has_descendant
parents
children
attach_child
siblings
attach_sibling
is_leaf
is_root
is_branch
Remove "type" attribute from call to parent class.
Overload insert to set message_types_id if required. Throw exception if requested message type is not active. See "active" in Interchange6::Schema::Result::MessageType.
To install Interchange6::Schema, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Interchange6::Schema
CPAN shell
perl -MCPAN -e shell install Interchange6::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.