public static function collectIds($entities)
	{
		$ids = array();

		foreach ($entities as $entity) {
			$ids[] = $entity->getId();
		}

		return $ids;
	}
public static function collectIds($entities)
	{
		$ids = array();

		foreach ($entities as $entity) {
			$ids[] = $entity->getId();
		}

		return $ids;
	}
public static function collectIds ( $ entities ) { $ ids = array ( ) ; foreach ( $ entities as $ entity ) { $ ids [ ] = $ entity -> getId ( ) ; } return $ ids ; }
Collects Id array from entity collection
@param array|Collection|\Traversable $entities
@return array
Collects Id array from entity collection