This shouldn't be needed since you are inheriting BastinResource and not $resource.