2008-07-21 00:13:24 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
#namespace Doctrine::ORM::Mappings;
|
|
|
|
|
|
|
|
class Doctrine_Association_OneToMany extends Doctrine_Association
|
|
|
|
{
|
2008-07-27 23:38:56 +04:00
|
|
|
/** The target foreign key columns that reference the sourceKeyColumns. */
|
|
|
|
protected $_targetForeignKeyColumns;
|
2008-07-21 00:13:24 +04:00
|
|
|
|
2008-07-27 23:38:56 +04:00
|
|
|
/** The (typically primary) source key columns that are referenced by the targetForeignKeyColumns. */
|
|
|
|
protected $_sourceKeyColumns;
|
2008-07-21 00:13:24 +04:00
|
|
|
|
2008-07-27 23:38:56 +04:00
|
|
|
/** This maps the target foreign key columns to the corresponding (primary) source key columns. */
|
2008-07-21 00:13:24 +04:00
|
|
|
protected $_targetForeignKeysToSourceKeys;
|
|
|
|
|
2008-07-27 23:38:56 +04:00
|
|
|
/** This maps the (primary) source key columns to the corresponding target foreign key columns. */
|
2008-07-21 00:13:24 +04:00
|
|
|
protected $_sourceKeysToTargetForeignKeys;
|
|
|
|
|
|
|
|
/** Whether to delete orphaned elements (removed from the collection) */
|
2008-07-27 23:38:56 +04:00
|
|
|
protected $_deleteOrphans = false;
|
2008-07-21 00:13:24 +04:00
|
|
|
|
2008-07-27 23:38:56 +04:00
|
|
|
public function shouldDeleteOrphans()
|
2008-07-21 00:13:24 +04:00
|
|
|
{
|
2008-07-27 23:38:56 +04:00
|
|
|
return $this->_deleteOrphans;
|
2008-07-21 00:13:24 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|