/**
  * Object representing the relationship between two models. Belongs_To means that THIS model has the foreign key
  * to the other model. This knows how to join the models,
  * get related models across the relation, and add-and-remove the relationships.
  * @param boolean $block_deletes For Belongs_To relations, this is set to FALSE by default. if there are related models across this relation, block (prevent and add an error) the deletion of this model
  * @param type $blocking_delete_error_message a customized error message on blocking deletes instead of the default
  */
 function __construct($block_deletes = false, $related_model_objects_deletion_error_message = null)
 {
     parent::__construct($block_deletes, $related_model_objects_deletion_error_message);
 }
Ejemplo n.º 2
0
 /**
  * Object representing the relationship between two models. HasAndBelongsToMany relations always use a join-table
  * (and an ee joining-model.) This knows how to join the models,
  * get related models across the relation, and add-and-remove the relationships.
  * @param boolean $block_deletes for this type of relation, we block by default for now. if there are related models across this relation, block (prevent and add an error) the deletion of this model
  * @param type $blocking_delete_error_message a customized error message on blocking deletes instead of the default
  */
 function __construct($joining_model_name, $block_deletes = true, $blocking_delete_error_message = '')
 {
     $this->_joining_model_name = $joining_model_name;
     parent::__construct($block_deletes, $blocking_delete_error_message);
 }
 /**
  * Object representing the relationship between two models. Has_Many_Relations are where the OTHER model has the foreign key
  * this model. IE, there can be many other model objects related to one of this model's objects (but NOT through a JOIN table,
  * which is the case for EE_HABTM_Relations). This knows how to join the models,
  * get related models across the relation, and add-and-remove the relationships.
  * @param boolean $block_deletes For this type of relation, we block by default. If there are related models across this relation, block (prevent and add an error) the deletion of this model
  * @param type $blocking_delete_error_message a customized error message on blocking deletes instead of the default
  */
 function __construct($block_deletes = true, $blocking_delete_error_message = null)
 {
     parent::__construct($block_deletes, $blocking_delete_error_message);
 }