1
0
mirror of synced 2024-12-13 06:46:03 +03:00

Adjusted ownsOne and ownsMany methods errors to be better descriptives

This commit is contained in:
guilhermeblanco 2008-01-23 15:21:28 +00:00
parent 5eecd9696e
commit c5e60f3e5c

View File

@ -211,7 +211,10 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access
*/
public function ownsOne()
{
throw new Doctrine_Exception('ownsMany() has been deprecated.');
throw new Doctrine_Exception(
'ownsMany() has been deprecated. ' .
'To create a composite relationship, use hasMany() with onDelete CASCADE option.'
);
}
/**
@ -227,7 +230,10 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access
*/
public function ownsMany()
{
throw new Doctrine_Exception('ownsOne() has been deprecated.');
throw new Doctrine_Exception(
'ownsOne() has been deprecated. ' .
'To create a composite relationship, use hasOne() with onDelete CASCADE option.'
);
}
/**