/*--------------------------------------------------------------------------
 *
 * 	You may freely copy, distribute, and reuse the code in this example.
 * 	SHL Systemhouse disclaims any warranty of any kind, expressed or
 *	implied, as to its fitness for any particular use.
 *
 *
 *	EntityProperties
 *
 *	Category Of:		EOEntity
 *
 *	Conforms To:		None
 *
 *	Declared In:		EntityPropertiesCategory.h
 *
 *------------------------------------------------------------------------*/

#import "EntityPropertiesCategory.h"



@implementation EOEntity  (EntityProperties)

- (NSArray *) properties
/*--------------------------------------------------------------------------
 *	A convenience method that gives me the entire list of attributes
 *	and relationships.
 *------------------------------------------------------------------------*/
{
	NSMutableArray
		*myArray = [NSMutableArray arrayWithCapacity:([_attributes count] + [_relationships count])];
	
	[myArray addObjectsFromArray:_attributes];
	[myArray addObjectsFromArray:_relationships];
	return myArray;
}

@end
