3062 Posts in 864 Topics by 646 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 884 Views |
-
DataObject already in DataObjectSet?

20 January 2010 at 1:50pm
How can I check if a DataObject is already in a DataObjectSet? I tried in_array() but it can´t cope with object sets.
-
Re: DataObject already in DataObjectSet?

20 January 2010 at 6:02pm Last edited: 21 January 2010 8:49am
You could try using containsIDs() and passing in the ID of your dataobject or you could use find().
$set->containsIDs(array($object->ID));
// or
$set->find('ID', $object->ID);
| 884 Views | ||
|
Page:
1
|
Go to Top |


