func (self *Developer) AllProjects(ctx context.Context, project Project) error {
	self.Projects = []Project{}
	keys, err := datastore.NewQuery(DeveloperKind).Ancestor(project.DatastoreKey(ctx)).GetAll(ctx, &self.Projects)
	if err != nil {
		return err
	}
	for i, key := range keys {
		self.Projects[i].Key = key.IntID()
	}
	return err
}
// AllProjects Fetch and set all projects for a developer
AllProjects Fetch and set all projects for a developer
// AllProjects Fetch and set all projects for a developer
func (self *Developer) AllProjects(ctx context.Context, project Project) error {
	self.Projects = []Project{}
	keys, err := datastore.NewQuery(DeveloperKind).Ancestor(project.DatastoreKey(ctx)).GetAll(ctx, &self.Projects)
	if err != nil {
		return err
	}
	for i, key := range keys {
		self.Projects[i].Key = key.IntID()
	}
	return err
}
func ( self * Developer ) AllProjects ( ctx context . Context , project Project ) error { self . Projects = [ ] Project { } keys , err := datastore . NewQuery ( DeveloperKind ) . Ancestor ( project . DatastoreKey ( ctx ) ) . GetAll ( ctx , & self . Projects ) if err != nil { return err } for i , key := range keys { self . Projects [ i ] . Key = key . IntID ( ) } return err }
AllProjects Fetch and set all projects for a developer
AllProjects Fetch and set all projects for a developer